From 923454e386bee31068ea9b7ac0085764ee917415 Mon Sep 17 00:00:00 2001 From: Microsoft Graph DevX Tooling Date: Tue, 17 Jan 2023 10:32:37 +0000 Subject: [PATCH 1/3] Update generated files with build 102225 --- .../Invite/InviteRequestBuilder.cs | 6 +- .../RegistrationRequestBuilder.cs | 14 +- .../Item/Messages/MessagesRequestBuilder.cs | 6 +- .../Invite/InviteRequestBuilder.cs | 6 +- .../RegistrationRequestBuilder.cs | 14 +- .../DeviceAppManagementRequestBuilder.cs | 5 - .../DeviceManagementRequestBuilder.cs | 5 + ...PolicyMigrationReportItemRequestBuilder.cs | 5 + .../UpdateScopeTagsPostRequestBody.cs | 54 ++++ .../UpdateScopeTagsRequestBuilder.cs | 102 ++++++++ .../UpdateScopeTagsResponse.cs | 54 ++++ ...tPortalNotificationAsSentRequestBuilder.cs | 4 +- ...utCompliancePolicyReportPostRequestBody.cs | 110 ++++++++ ...outCompliancePolicyReportRequestBuilder.cs | 101 ++++++++ .../Reports/ReportsRequestBuilder.cs | 5 + .../Count/CountRequestBuilder.cs | 97 +++++++ ...sDeviceTimelineEventsItemRequestBuilder.cs | 212 +++++++++++++++ ...yticsDeviceTimelineEventsRequestBuilder.cs | 195 ++++++++++++++ .../ConversationsRequestBuilder.cs | 6 +- .../Item/Messages/MessagesRequestBuilder.cs | 6 +- .../Messages/MessagesRequestBuilder.cs | 6 +- .../IdentityGovernanceRequestBuilder.cs | 5 + .../DeletedItemsRequestBuilder.cs | 53 ---- .../Item/Runs/Item/RunItemRequestBuilder.cs | 100 -------- .../TaskProcessingResultItemRequestBuilder.cs | 100 -------- .../TaskProcessingResultsRequestBuilder.cs | 53 ---- .../TaskProcessingResultItemRequestBuilder.cs | 100 -------- .../TaskProcessingResultsRequestBuilder.cs | 53 ---- .../UserProcessingResultItemRequestBuilder.cs | 100 -------- .../UserProcessingResultsRequestBuilder.cs | 53 ---- .../Workflows/Item/Runs/RunsRequestBuilder.cs | 53 ---- .../TaskProcessingResultItemRequestBuilder.cs | 100 -------- .../TaskProcessingResultsRequestBuilder.cs | 53 ---- .../Item/TaskReportItemRequestBuilder.cs | 100 -------- .../TaskReports/TaskReportsRequestBuilder.cs | 53 ---- .../TaskProcessingResultItemRequestBuilder.cs | 100 -------- .../TaskProcessingResultsRequestBuilder.cs | 53 ---- .../UserProcessingResultItemRequestBuilder.cs | 100 -------- .../UserProcessingResultsRequestBuilder.cs | 53 ---- ...wVersionVersionNumberItemRequestBuilder.cs | 100 -------- .../Item/Versions/VersionsRequestBuilder.cs | 53 ---- .../Item/WorkflowItemRequestBuilder.cs | 53 ---- .../Workflows/WorkflowsRequestBuilder.cs | 53 ---- .../Settings/SettingsRequestBuilder.cs | 47 ---- .../Item/TaskDefinitionItemRequestBuilder.cs | 100 -------- .../TaskDefinitionsRequestBuilder.cs | 53 ---- .../Item/Tasks/Item/TaskItemRequestBuilder.cs | 100 -------- .../TaskProcessingResultItemRequestBuilder.cs | 100 -------- .../TaskProcessingResultsRequestBuilder.cs | 53 ---- .../Item/Tasks/TasksRequestBuilder.cs | 53 ---- .../WorkflowTemplateItemRequestBuilder.cs | 100 -------- .../WorkflowTemplatesRequestBuilder.cs | 53 ---- .../Item/Runs/Item/RunItemRequestBuilder.cs | 100 -------- .../TaskProcessingResultItemRequestBuilder.cs | 100 -------- .../TaskProcessingResultsRequestBuilder.cs | 53 ---- .../TaskProcessingResultItemRequestBuilder.cs | 100 -------- .../TaskProcessingResultsRequestBuilder.cs | 53 ---- .../UserProcessingResultItemRequestBuilder.cs | 100 -------- .../UserProcessingResultsRequestBuilder.cs | 53 ---- .../Workflows/Item/Runs/RunsRequestBuilder.cs | 53 ---- .../TaskProcessingResultItemRequestBuilder.cs | 100 -------- .../TaskProcessingResultsRequestBuilder.cs | 53 ---- .../Item/TaskReportItemRequestBuilder.cs | 100 -------- .../TaskReports/TaskReportsRequestBuilder.cs | 53 ---- .../TaskProcessingResultItemRequestBuilder.cs | 100 -------- .../TaskProcessingResultsRequestBuilder.cs | 53 ---- .../UserProcessingResultItemRequestBuilder.cs | 100 -------- .../UserProcessingResultsRequestBuilder.cs | 53 ---- ...wVersionVersionNumberItemRequestBuilder.cs | 100 -------- .../Item/Versions/VersionsRequestBuilder.cs | 53 ---- ...signmentScheduleInstancesRequestBuilder.cs | 204 +++++++++++++++ .../Count/CountRequestBuilder.cs | 97 +++++++ ...FilterByCurrentUserWithOnRequestBuilder.cs | 128 +++++++++ .../FilterByCurrentUserWithOnResponse.cs | 40 +++ .../ActivatedUsingRequestBuilder.cs | 112 ++++++++ .../Item/Group/GroupRequestBuilder.cs | 112 ++++++++ .../Item/Principal/PrincipalRequestBuilder.cs | 112 ++++++++ ...nmentScheduleInstanceItemRequestBuilder.cs | 227 ++++++++++++++++ ...ssignmentScheduleRequestsRequestBuilder.cs | 204 +++++++++++++++ .../Count/CountRequestBuilder.cs | 97 +++++++ ...FilterByCurrentUserWithOnRequestBuilder.cs | 128 +++++++++ .../FilterByCurrentUserWithOnResponse.cs | 40 +++ .../ActivatedUsingRequestBuilder.cs | 112 ++++++++ .../Item/Cancel/CancelRequestBuilder.cs | 96 +++++++ .../Item/Group/GroupRequestBuilder.cs | 112 ++++++++ .../Item/Principal/PrincipalRequestBuilder.cs | 112 ++++++++ ...gnmentScheduleRequestItemRequestBuilder.cs | 237 +++++++++++++++++ .../TargetScheduleRequestBuilder.cs | 112 ++++++++ .../AssignmentSchedulesRequestBuilder.cs | 204 +++++++++++++++ .../Count/CountRequestBuilder.cs | 97 +++++++ ...FilterByCurrentUserWithOnRequestBuilder.cs | 128 +++++++++ .../FilterByCurrentUserWithOnResponse.cs | 40 +++ .../ActivatedUsingRequestBuilder.cs | 112 ++++++++ .../Item/Group/GroupRequestBuilder.cs | 112 ++++++++ .../Item/Principal/PrincipalRequestBuilder.cs | 112 ++++++++ ...oupAssignmentScheduleItemRequestBuilder.cs | 227 ++++++++++++++++ .../Count/CountRequestBuilder.cs | 97 +++++++ ...gibilityScheduleInstancesRequestBuilder.cs | 204 +++++++++++++++ ...FilterByCurrentUserWithOnRequestBuilder.cs | 128 +++++++++ .../FilterByCurrentUserWithOnResponse.cs | 40 +++ .../Item/Group/GroupRequestBuilder.cs | 112 ++++++++ .../Item/Principal/PrincipalRequestBuilder.cs | 112 ++++++++ ...ilityScheduleInstanceItemRequestBuilder.cs | 222 ++++++++++++++++ .../Count/CountRequestBuilder.cs | 97 +++++++ ...igibilityScheduleRequestsRequestBuilder.cs | 204 +++++++++++++++ ...FilterByCurrentUserWithOnRequestBuilder.cs | 128 +++++++++ .../FilterByCurrentUserWithOnResponse.cs | 40 +++ .../Item/Cancel/CancelRequestBuilder.cs | 96 +++++++ .../Item/Group/GroupRequestBuilder.cs | 112 ++++++++ .../Item/Principal/PrincipalRequestBuilder.cs | 112 ++++++++ ...bilityScheduleRequestItemRequestBuilder.cs | 232 +++++++++++++++++ .../TargetScheduleRequestBuilder.cs | 112 ++++++++ .../Count/CountRequestBuilder.cs | 97 +++++++ .../EligibilitySchedulesRequestBuilder.cs | 204 +++++++++++++++ ...FilterByCurrentUserWithOnRequestBuilder.cs | 128 +++++++++ .../FilterByCurrentUserWithOnResponse.cs | 40 +++ .../Item/Group/GroupRequestBuilder.cs | 112 ++++++++ .../Item/Principal/PrincipalRequestBuilder.cs | 112 ++++++++ ...upEligibilityScheduleItemRequestBuilder.cs | 222 ++++++++++++++++ .../Group/GroupRequestBuilder.cs | 242 ++++++++++++++++++ .../PrivilegedAccessRequestBuilder.cs | 217 ++++++++++++++++ .../Methods/MethodsRequestBuilder.cs | 6 +- .../Item/Messages/MessagesRequestBuilder.cs | 6 +- .../Generated/Me/MeRequestBuilder.cs | 8 +- .../Me/Messages/MessagesRequestBuilder.cs | 6 +- .../RegistrationRequestBuilder.cs | 14 +- .../Generated/Models/AccountTargetContent.cs | 66 +++++ .../Models/AccountTargetContentType.cs | 8 + .../Models/AddressBookAccountTargetContent.cs | 45 ++++ .../Generated/Models/AdministrativeUnit.cs | 2 +- .../AndroidDeviceOwnerEnrollmentProfile.cs | 10 +- .../AndroidForWorkAppConfigurationSchema.cs | 3 - .../Models/AndroidForWorkEnrollmentProfile.cs | 3 - ...droidManagedStoreAppConfigurationSchema.cs | 3 - .../Models/AndroidMinimumOperatingSystem.cs | 32 +-- .../Generated/Models/Application.cs | 2 +- .../Models/AttackSimulationOperation.cs | 53 ++++ ...ckSimulationOperationCollectionResponse.cs | 39 +++ .../Models/AttackSimulationOperationType.cs | 7 + .../Generated/Models/AttackSimulationRoot.cs | 14 + .../Generated/Models/AuditEvent.cs | 3 - .../Models/AuthenticationEventListener.cs | 7 - .../Generated/Models/BookingCustomQuestion.cs | 3 - .../Generated/Models/BookingService.cs | 5 +- .../Generated/Models/BookingStaffMember.cs | 7 + .../Models/BookingStaffMembershipStatus.cs | 8 + .../Generated/Models/BusinessScenario.cs | 16 +- .../Models/BusinessScenarioGroupTarget.cs | 2 +- .../Models/BusinessScenarioPlanReference.cs | 2 +- .../Models/BusinessScenarioPlanner.cs | 6 +- .../Models/BusinessScenarioProperties.cs | 10 +- .../Generated/Models/BusinessScenarioTask.cs | 4 +- .../Models/CartToClassAssociation.cs | 3 - .../Models/CertificateConnectorDetails.cs | 3 - .../Models/ChromeOSOnboardingSettings.cs | 3 - .../Generated/Models/CoachmarkLocation.cs | 75 ++++++ .../Generated/Models/CoachmarkLocationType.cs | 11 + .../Generated/Models/DataSharingConsent.cs | 3 - .../Models/DepEnrollmentBaseProfile.cs | 9 +- .../Generated/Models/DepEnrollmentProfile.cs | 2 +- .../Models/DepIOSEnrollmentProfile.cs | 2 +- .../Generated/Models/Device.cs | 2 +- .../DeviceAndAppManagementAssignmentFilter.cs | 3 - .../Generated/Models/DeviceAppManagement.cs | 7 - ...viceCompliancePolicySettingStateSummary.cs | 3 - .../Models/DeviceComplianceScript.cs | 3 - .../DeviceConfigurationConflictSummary.cs | 3 - .../Generated/Models/DeviceEventLevel.cs | 19 ++ .../DeviceManagement/DeviceManagement.cs | 7 + .../Models/DeviceManagementAutopilotEvent.cs | 3 - .../DeviceManagementConfigurationPolicy.cs | 3 - ...ceManagementConfigurationPolicyTemplate.cs | 3 - ...eviceManagementExchangeOnPremisesPolicy.cs | 3 - ...viceManagementResourceAccessProfileBase.cs | 3 - .../Models/DeviceManagementScript.cs | 3 - .../Generated/Models/DeviceShellScript.cs | 3 - .../Ediscovery/NoncustodialDataSource.cs | 2 +- .../EligibilityFilteringEnabledEntities.cs | 1 + .../Generated/Models/EmailPayloadDetail.cs | 66 +++++ .../Models/EmbeddedSIMActivationCodePool.cs | 3 - .../Generated/Models/EnrollmentProfile.cs | 3 + .../EnrollmentRestrictionPlatformType.cs | 18 +- .../Generated/Models/Entity.cs | 16 +- .../Generated/Models/GroupPolicyCategory.cs | 3 - .../Generated/Models/GroupPolicyDefinition.cs | 3 - .../Models/GroupPolicyDefinitionValue.cs | 3 - .../Models/GroupPolicyMigrationReport.cs | 3 - .../Generated/Models/GroupPolicyObjectFile.cs | 3 - .../Generated/Models/Identity.cs | 4 +- .../IdentityGovernance/IdentityGovernance.cs | 7 + .../Models/ImportedDeviceIdentity.cs | 3 - .../ImportedWindowsAutopilotDeviceIdentity.cs | 3 - .../Models/IncludeAllAccountTargetContent.cs | 38 +++ .../Generated/Models/IntuneBrandingProfile.cs | 3 - .../Generated/Models/IosLobApp.cs | 7 - .../Models/IosMinimumOperatingSystem.cs | 16 +- .../Generated/Models/LongRunningOperation.cs | 1 + .../Models/MacOsLobAppAssignmentSettings.cs | 2 +- .../Models/ManagedAppRegistration.cs | 3 - .../Generated/Models/ManagedDevice.cs | 6 +- .../Generated/Models/MicrosoftTunnelSite.cs | 7 - .../Generated/Models/MobileApp.cs | 3 + .../Generated/Models/ObjectIdentity.cs | 2 +- .../Generated/Models/OnlineMeeting.cs | 7 + ...lineMeetingContentSharingDisabledReason.cs | 6 + .../Models/OnlineMeetingRestricted.cs | 68 +++++ .../OnlineMeetingVideoDisabledReason.cs | 6 + .../Generated/Models/OrgContact.cs | 2 +- .../Generated/Models/Organization.cs | 7 + .../Generated/Models/Participant.cs | 7 + .../Generated/Models/PartnerTenantType.cs | 11 + .../Generated/Models/PasswordProfile.cs | 2 +- .../Generated/Models/Payload.cs | 186 ++++++++++++++ .../Generated/Models/PayloadBrand.cs | 25 ++ .../Generated/Models/PayloadCoachmark.cs | 96 +++++++ .../PayloadCoachmarkCollectionResponse.cs | 39 +++ ...sponse.cs => PayloadCollectionResponse.cs} | 14 +- .../Generated/Models/PayloadComplexity.cs | 9 + .../Generated/Models/PayloadDetail.cs | 79 ++++++ .../Generated/Models/PayloadIndustry.cs | 26 ++ .../Generated/Models/PayloadTheme.cs | 36 +++ .../Generated/Models/PlannerFieldRules.cs | 4 +- .../Models/PlannerPlanConfiguration.cs | 14 +- ...lannerPlanConfigurationBucketDefinition.cs | 2 +- ...nnerPlanConfigurationBucketLocalization.cs | 4 +- .../PlannerPlanConfigurationLocalization.cs | 6 +- .../Generated/Models/PlannerPropertyRule.cs | 2 +- .../Generated/Models/PlannerRuleOverride.cs | 4 +- .../Models/PlannerTaskConfiguration.cs | 2 +- .../Generated/Models/PlannerTaskPolicy.cs | 2 +- .../Models/PlannerTaskPropertyRule.cs | 28 +- .../Models/PlannerTaskRoleBasedRule.cs | 6 +- .../Generated/Models/PrivilegedAccessGroup.cs | 74 ++++++ ...PrivilegedAccessGroupAssignmentSchedule.cs | 94 +++++++ ...oupAssignmentScheduleCollectionResponse.cs | 39 +++ ...edAccessGroupAssignmentScheduleInstance.cs | 101 ++++++++ ...nmentScheduleInstanceCollectionResponse.cs | 39 +++ ...gedAccessGroupAssignmentScheduleRequest.cs | 94 +++++++ ...gnmentScheduleRequestCollectionResponse.cs | 39 +++ .../PrivilegedAccessGroupAssignmentType.cs | 7 + ...rivilegedAccessGroupEligibilitySchedule.cs | 80 ++++++ ...upEligibilityScheduleCollectionResponse.cs | 39 +++ ...dAccessGroupEligibilityScheduleInstance.cs | 87 +++++++ ...ilityScheduleInstanceCollectionResponse.cs | 39 +++ ...edAccessGroupEligibilityScheduleRequest.cs | 87 +++++++ ...bilityScheduleRequestCollectionResponse.cs | 39 +++ .../Models/PrivilegedAccessGroupMemberType.cs | 7 + .../PrivilegedAccessGroupRelationships.cs | 7 + .../Generated/Models/PrivilegedAccessRoot.cs | 39 +++ .../Models/PrivilegedAccessSchedule.cs | 72 ++++++ .../PrivilegedAccessScheduleInstance.cs | 51 ++++ .../Models/PrivilegedAccessScheduleRequest.cs | 78 ++++++ .../Models/RemoteAssistancePartner.cs | 3 - .../Generated/Models/Request.cs | 3 + .../Models/RestrictedAppsViolation.cs | 3 - .../Models/ScheduleRequestActions.cs | 14 + .../Generated/Models/SearchHit.cs | 7 + .../EdiscoveryNoncustodialDataSource.cs | 2 +- .../Models/SecurityConfigurationTask.cs | 2 +- .../Generated/Models/ServicePrincipal.cs | 2 +- .../Generated/Models/SideLoadingKey.cs | 70 ----- .../Generated/Models/Simulation.cs | 28 ++ .../Models/SimulationContentSource.cs | 8 + .../Models/SimulationContentStatus.cs | 10 + .../Generated/Models/SingleSignOnMode.cs | 1 + .../Models/TelecomExpenseManagementPartner.cs | 3 - .../Generated/Models/TenantRelationship.cs | 34 ++- .../Generated/Models/TermsAndConditions.cs | 3 - src/Microsoft.Graph/Generated/Models/User.cs | 2 +- ...erienceAnalyticsAnomalySeverityOverview.cs | 8 +- .../UserExperienceAnalyticsDeviceScores.cs | 3 - ...ExperienceAnalyticsDeviceStartupHistory.cs | 3 - ...ExperienceAnalyticsDeviceStartupProcess.cs | 3 - ...nalyticsDeviceStartupProcessPerformance.cs | 3 - ...ExperienceAnalyticsDeviceTimelineEvents.cs | 81 ++++++ ...sDeviceTimelineEventsCollectionResponse.cs | 39 +++ ...enceAnalyticsDeviceWithoutCloudIdentity.cs | 3 - ...UserExperienceAnalyticsImpactingProcess.cs | 3 - .../UserExperienceAnalyticsModelScores.cs | 3 - ...erienceAnalyticsNotAutopilotReadyDevice.cs | 3 - ...UserExperienceAnalyticsRemoteConnection.cs | 3 - ...rExperienceAnalyticsResourcePerformance.cs | 3 - .../UserExperienceAnalyticsScoreHistory.cs | 3 - ...perienceAnalyticsWorkFromAnywhereMetric.cs | 3 - ...alyticsWorkFromAnywhereModelPerformance.cs | 3 - .../Generated/Models/UserPFXCertificate.cs | 3 - .../Models/WatermarkProtectionValues.cs | 68 +++++ .../Models/WindowsDriverUpdateProfile.cs | 3 - .../Models/WindowsFeatureUpdateProfile.cs | 3 - ...InformationProtectionAppLearningSummary.cs | 3 - ...rmationProtectionNetworkLearningSummary.cs | 3 - .../Models/WindowsMalwareInformation.cs | 3 - .../Models/WindowsQualityUpdateProfile.cs | 3 - .../Models/WindowsUpdateCatalogItem.cs | 3 - ...tPortalNotificationAsSentRequestBuilder.cs | 4 +- .../ConnectorGroupsRequestBuilder.cs | 6 +- .../RiskDetectionsRequestBuilder.cs | 8 +- .../AttackSimulationRequestBuilder.cs | 10 + .../Operations/Count/CountRequestBuilder.cs | 97 +++++++ ...ckSimulationOperationItemRequestBuilder.cs | 212 +++++++++++++++ .../Operations/OperationsRequestBuilder.cs} | 72 +++--- .../Payloads}/Count/CountRequestBuilder.cs | 6 +- .../Item/PayloadItemRequestBuilder.cs} | 76 +++--- .../Payloads/PayloadsRequestBuilder.cs | 195 ++++++++++++++ .../Item/Payload/PayloadRequestBuilder.cs | 112 ++++++++ .../Item/SimulationItemRequestBuilder.cs | 5 + .../BusinessScenariosRequestBuilder.cs | 12 +- .../Planner/GetPlan/GetPlanRequestBuilder.cs | 5 +- ...igurationLocalizationItemRequestBuilder.cs | 6 +- .../LocalizationsRequestBuilder.cs | 12 +- .../PlanConfigurationRequestBuilder.cs | 12 +- .../Item/Planner/PlannerRequestBuilder.cs | 7 +- .../TaskConfigurationRequestBuilder.cs | 12 +- .../BusinessScenarioTaskItemRequestBuilder.cs | 6 +- .../Item/Planner/Tasks/TasksRequestBuilder.cs | 12 +- .../Item/Messages/MessagesRequestBuilder.cs | 6 +- .../Messages/MessagesRequestBuilder.cs | 6 +- .../Item/Messages/MessagesRequestBuilder.cs | 6 +- .../Messages/MessagesRequestBuilder.cs | 6 +- .../Item/Messages/MessagesRequestBuilder.cs | 6 +- .../Item/Messages/MessagesRequestBuilder.cs | 6 +- .../Messages/MessagesRequestBuilder.cs | 6 +- .../TeamTemplatesRequestBuilder.cs | 8 +- .../Methods/MethodsRequestBuilder.cs | 6 +- .../Item/Messages/MessagesRequestBuilder.cs | 6 +- .../Item/Messages/MessagesRequestBuilder.cs | 6 +- .../RegistrationRequestBuilder.cs | 14 +- .../Generated/Users/UsersRequestBuilder.cs | 8 +- src/Microsoft.Graph/Generated/kiota-lock.json | 4 +- 329 files changed, 11184 insertions(+), 4197 deletions(-) create mode 100644 src/Microsoft.Graph/Generated/DeviceManagement/GroupPolicyMigrationReports/Item/UpdateScopeTags/UpdateScopeTagsPostRequestBody.cs create mode 100644 src/Microsoft.Graph/Generated/DeviceManagement/GroupPolicyMigrationReports/Item/UpdateScopeTags/UpdateScopeTagsRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/DeviceManagement/GroupPolicyMigrationReports/Item/UpdateScopeTags/UpdateScopeTagsResponse.cs create mode 100644 src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetDevicesWithoutCompliancePolicyReport/GetDevicesWithoutCompliancePolicyReportPostRequestBody.cs create mode 100644 src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetDevicesWithoutCompliancePolicyReport/GetDevicesWithoutCompliancePolicyReportRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsDeviceTimelineEvents/Count/CountRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsDeviceTimelineEvents/Item/UserExperienceAnalyticsDeviceTimelineEventsItemRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsDeviceTimelineEvents/UserExperienceAnalyticsDeviceTimelineEventsRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/AssignmentScheduleInstancesRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Count/CountRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs create mode 100644 src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/ActivatedUsing/ActivatedUsingRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/Group/GroupRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/Principal/PrincipalRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/AssignmentScheduleRequestsRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Count/CountRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs create mode 100644 src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/ActivatedUsing/ActivatedUsingRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/Cancel/CancelRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/Group/GroupRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/Principal/PrincipalRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/TargetSchedule/TargetScheduleRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/AssignmentSchedulesRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Count/CountRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs create mode 100644 src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/ActivatedUsing/ActivatedUsingRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/Group/GroupRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/Principal/PrincipalRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/PrivilegedAccessGroupAssignmentScheduleItemRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Count/CountRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/EligibilityScheduleInstancesRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs create mode 100644 src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/Group/GroupRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/Principal/PrincipalRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Count/CountRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/EligibilityScheduleRequestsRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs create mode 100644 src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/Cancel/CancelRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/Group/GroupRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/Principal/PrincipalRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/TargetSchedule/TargetScheduleRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Count/CountRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/EligibilitySchedulesRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs create mode 100644 src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/Group/GroupRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/Principal/PrincipalRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/PrivilegedAccessGroupEligibilityScheduleItemRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/GroupRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/PrivilegedAccessRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Models/AccountTargetContent.cs create mode 100644 src/Microsoft.Graph/Generated/Models/AccountTargetContentType.cs create mode 100644 src/Microsoft.Graph/Generated/Models/AddressBookAccountTargetContent.cs create mode 100644 src/Microsoft.Graph/Generated/Models/AttackSimulationOperation.cs create mode 100644 src/Microsoft.Graph/Generated/Models/AttackSimulationOperationCollectionResponse.cs create mode 100644 src/Microsoft.Graph/Generated/Models/AttackSimulationOperationType.cs create mode 100644 src/Microsoft.Graph/Generated/Models/BookingStaffMembershipStatus.cs create mode 100644 src/Microsoft.Graph/Generated/Models/CoachmarkLocation.cs create mode 100644 src/Microsoft.Graph/Generated/Models/CoachmarkLocationType.cs create mode 100644 src/Microsoft.Graph/Generated/Models/DeviceEventLevel.cs create mode 100644 src/Microsoft.Graph/Generated/Models/EmailPayloadDetail.cs create mode 100644 src/Microsoft.Graph/Generated/Models/IncludeAllAccountTargetContent.cs create mode 100644 src/Microsoft.Graph/Generated/Models/OnlineMeetingContentSharingDisabledReason.cs create mode 100644 src/Microsoft.Graph/Generated/Models/OnlineMeetingRestricted.cs create mode 100644 src/Microsoft.Graph/Generated/Models/OnlineMeetingVideoDisabledReason.cs create mode 100644 src/Microsoft.Graph/Generated/Models/PartnerTenantType.cs create mode 100644 src/Microsoft.Graph/Generated/Models/Payload.cs create mode 100644 src/Microsoft.Graph/Generated/Models/PayloadBrand.cs create mode 100644 src/Microsoft.Graph/Generated/Models/PayloadCoachmark.cs create mode 100644 src/Microsoft.Graph/Generated/Models/PayloadCoachmarkCollectionResponse.cs rename src/Microsoft.Graph/Generated/Models/{SideLoadingKeyCollectionResponse.cs => PayloadCollectionResponse.cs} (71%) create mode 100644 src/Microsoft.Graph/Generated/Models/PayloadComplexity.cs create mode 100644 src/Microsoft.Graph/Generated/Models/PayloadDetail.cs create mode 100644 src/Microsoft.Graph/Generated/Models/PayloadIndustry.cs create mode 100644 src/Microsoft.Graph/Generated/Models/PayloadTheme.cs create mode 100644 src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroup.cs create mode 100644 src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupAssignmentSchedule.cs create mode 100644 src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupAssignmentScheduleCollectionResponse.cs create mode 100644 src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupAssignmentScheduleInstance.cs create mode 100644 src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupAssignmentScheduleInstanceCollectionResponse.cs create mode 100644 src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupAssignmentScheduleRequest.cs create mode 100644 src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupAssignmentScheduleRequestCollectionResponse.cs create mode 100644 src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupAssignmentType.cs create mode 100644 src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupEligibilitySchedule.cs create mode 100644 src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupEligibilityScheduleCollectionResponse.cs create mode 100644 src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupEligibilityScheduleInstance.cs create mode 100644 src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupEligibilityScheduleInstanceCollectionResponse.cs create mode 100644 src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupEligibilityScheduleRequest.cs create mode 100644 src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupEligibilityScheduleRequestCollectionResponse.cs create mode 100644 src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupMemberType.cs create mode 100644 src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupRelationships.cs create mode 100644 src/Microsoft.Graph/Generated/Models/PrivilegedAccessRoot.cs create mode 100644 src/Microsoft.Graph/Generated/Models/PrivilegedAccessSchedule.cs create mode 100644 src/Microsoft.Graph/Generated/Models/PrivilegedAccessScheduleInstance.cs create mode 100644 src/Microsoft.Graph/Generated/Models/PrivilegedAccessScheduleRequest.cs create mode 100644 src/Microsoft.Graph/Generated/Models/ScheduleRequestActions.cs delete mode 100644 src/Microsoft.Graph/Generated/Models/SideLoadingKey.cs create mode 100644 src/Microsoft.Graph/Generated/Models/SimulationContentSource.cs create mode 100644 src/Microsoft.Graph/Generated/Models/SimulationContentStatus.cs create mode 100644 src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsDeviceTimelineEvents.cs create mode 100644 src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsDeviceTimelineEventsCollectionResponse.cs create mode 100644 src/Microsoft.Graph/Generated/Models/WatermarkProtectionValues.cs create mode 100644 src/Microsoft.Graph/Generated/Security/AttackSimulation/Operations/Count/CountRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Security/AttackSimulation/Operations/Item/AttackSimulationOperationItemRequestBuilder.cs rename src/Microsoft.Graph/Generated/{DeviceAppManagement/SideLoadingKeys/SideLoadingKeysRequestBuilder.cs => Security/AttackSimulation/Operations/OperationsRequestBuilder.cs} (67%) rename src/Microsoft.Graph/Generated/{DeviceAppManagement/SideLoadingKeys => Security/AttackSimulation/Payloads}/Count/CountRequestBuilder.cs (95%) rename src/Microsoft.Graph/Generated/{DeviceAppManagement/SideLoadingKeys/Item/SideLoadingKeyItemRequestBuilder.cs => Security/AttackSimulation/Payloads/Item/PayloadItemRequestBuilder.cs} (67%) create mode 100644 src/Microsoft.Graph/Generated/Security/AttackSimulation/Payloads/PayloadsRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Security/AttackSimulation/Simulations/Item/Payload/PayloadRequestBuilder.cs diff --git a/src/Microsoft.Graph/Generated/App/Calls/Item/Participants/Invite/InviteRequestBuilder.cs b/src/Microsoft.Graph/Generated/App/Calls/Item/Participants/Invite/InviteRequestBuilder.cs index cea39ed0006..89d66253a35 100644 --- a/src/Microsoft.Graph/Generated/App/Calls/Item/Participants/Invite/InviteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/App/Calls/Item/Participants/Invite/InviteRequestBuilder.cs @@ -47,8 +47,8 @@ public InviteRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { RequestAdapter = requestAdapter; } /// - /// Invite participants to the active call. For more information about how to handle operations, see commsOperation. - /// Find more info here + /// Delete a specific participant in a call. In some situations, it is appropriate for an application to remove a participant from an active call. This action can be done before or after the participant answers the call. When an active caller is removed, they are immediately dropped from the call with no pre- or post-removal notification. When an invited participant is removed, any outstanding add participant request is canceled. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -63,7 +63,7 @@ public async Task PostAsync(InvitePostRequestBody b return await RequestAdapter.SendAsync(requestInfo, InviteParticipantsOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Invite participants to the active call. For more information about how to handle operations, see commsOperation. + /// Delete a specific participant in a call. In some situations, it is appropriate for an application to remove a participant from an active call. This action can be done before or after the participant answers the call. When an active caller is removed, they are immediately dropped from the call with no pre- or post-removal notification. When an invited participant is removed, any outstanding add participant request is canceled. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/App/OnlineMeetings/Item/Registration/RegistrationRequestBuilder.cs b/src/Microsoft.Graph/Generated/App/OnlineMeetings/Item/Registration/RegistrationRequestBuilder.cs index 870c03cec99..55471fe0a14 100644 --- a/src/Microsoft.Graph/Generated/App/OnlineMeetings/Item/Registration/RegistrationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/App/OnlineMeetings/Item/Registration/RegistrationRequestBuilder.cs @@ -52,8 +52,8 @@ public RegistrationRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) RequestAdapter = requestAdapter; } /// - /// Disable and delete the meetingRegistration of an onlineMeeting on behalf of the organizer. - /// Find more info here + /// Disable and delete the externalMeetingRegistration of an onlineMeeting. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -66,8 +66,8 @@ public async Task DeleteAsync(Action - /// Get the externalMeetingRegistration details associated with an onlineMeeting. - /// Find more info here + /// Get the meetingRegistration details associated with an onlineMeeting on behalf of the organizer. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -96,7 +96,7 @@ public async Task PatchAsync(MeetingRegistration body, Acti return await RequestAdapter.SendAsync(requestInfo, MeetingRegistration.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Disable and delete the meetingRegistration of an onlineMeeting on behalf of the organizer. + /// Disable and delete the externalMeetingRegistration of an onlineMeeting. /// /// Configuration for the request such as headers, query parameters, and middleware options. public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get the externalMeetingRegistration details associated with an onlineMeeting. + /// Get the meetingRegistration details associated with an onlineMeeting on behalf of the organizer. /// /// Configuration for the request such as headers, query parameters, and middleware options. public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { @@ -172,7 +172,7 @@ public RegistrationRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get the externalMeetingRegistration details associated with an onlineMeeting. + /// Get the meetingRegistration details associated with an onlineMeeting on behalf of the organizer. /// public class RegistrationRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Chats/Item/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Item/Messages/MessagesRequestBuilder.cs index 04e87a76e74..e4652b1c4b8 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/Messages/MessagesRequestBuilder.cs @@ -80,8 +80,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Send a new chatMessage in the specified channel or a chat. - /// Find more info here + /// Send a new chatMessage in the specified chat. This API cannot create a new chat; you must use the list chats method to retrieve the ID of an existing chat before creating a chat message. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -116,7 +116,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Send a new chatMessage in the specified channel or a chat. + /// Send a new chatMessage in the specified chat. This API cannot create a new chat; you must use the list chats method to retrieve the ID of an existing chat before creating a chat message. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Communications/Calls/Item/Participants/Invite/InviteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/Calls/Item/Participants/Invite/InviteRequestBuilder.cs index a6ba755f875..48ffb0d11ed 100644 --- a/src/Microsoft.Graph/Generated/Communications/Calls/Item/Participants/Invite/InviteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/Calls/Item/Participants/Invite/InviteRequestBuilder.cs @@ -47,8 +47,8 @@ public InviteRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { RequestAdapter = requestAdapter; } /// - /// Invite participants to the active call. For more information about how to handle operations, see commsOperation. - /// Find more info here + /// Delete a specific participant in a call. In some situations, it is appropriate for an application to remove a participant from an active call. This action can be done before or after the participant answers the call. When an active caller is removed, they are immediately dropped from the call with no pre- or post-removal notification. When an invited participant is removed, any outstanding add participant request is canceled. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -63,7 +63,7 @@ public async Task PostAsync(InvitePostRequestBody b return await RequestAdapter.SendAsync(requestInfo, InviteParticipantsOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Invite participants to the active call. For more information about how to handle operations, see commsOperation. + /// Delete a specific participant in a call. In some situations, it is appropriate for an application to remove a participant from an active call. This action can be done before or after the participant answers the call. When an active caller is removed, they are immediately dropped from the call with no pre- or post-removal notification. When an invited participant is removed, any outstanding add participant request is canceled. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/Registration/RegistrationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/Registration/RegistrationRequestBuilder.cs index 603876511f1..db7b33e8e37 100644 --- a/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/Registration/RegistrationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/Registration/RegistrationRequestBuilder.cs @@ -52,8 +52,8 @@ public RegistrationRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) RequestAdapter = requestAdapter; } /// - /// Disable and delete the meetingRegistration of an onlineMeeting on behalf of the organizer. - /// Find more info here + /// Disable and delete the externalMeetingRegistration of an onlineMeeting. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -66,8 +66,8 @@ public async Task DeleteAsync(Action - /// Get the externalMeetingRegistration details associated with an onlineMeeting. - /// Find more info here + /// Get the meetingRegistration details associated with an onlineMeeting on behalf of the organizer. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -96,7 +96,7 @@ public async Task PatchAsync(MeetingRegistration body, Acti return await RequestAdapter.SendAsync(requestInfo, MeetingRegistration.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Disable and delete the meetingRegistration of an onlineMeeting on behalf of the organizer. + /// Disable and delete the externalMeetingRegistration of an onlineMeeting. /// /// Configuration for the request such as headers, query parameters, and middleware options. public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get the externalMeetingRegistration details associated with an onlineMeeting. + /// Get the meetingRegistration details associated with an onlineMeeting on behalf of the organizer. /// /// Configuration for the request such as headers, query parameters, and middleware options. public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { @@ -172,7 +172,7 @@ public RegistrationRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get the externalMeetingRegistration details associated with an onlineMeeting. + /// Get the meetingRegistration details associated with an onlineMeeting on behalf of the organizer. /// public class RegistrationRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/DeviceAppManagementRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/DeviceAppManagementRequestBuilder.cs index fc42943382d..b57bda27924 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/DeviceAppManagementRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/DeviceAppManagementRequestBuilder.cs @@ -14,7 +14,6 @@ using Microsoft.Graph.Beta.DeviceAppManagement.MobileAppConfigurations; using Microsoft.Graph.Beta.DeviceAppManagement.MobileApps; using Microsoft.Graph.Beta.DeviceAppManagement.PolicySets; -using Microsoft.Graph.Beta.DeviceAppManagement.SideLoadingKeys; using Microsoft.Graph.Beta.DeviceAppManagement.SymantecCodeSigningCertificate; using Microsoft.Graph.Beta.DeviceAppManagement.SyncMicrosoftStoreForBusinessApps; using Microsoft.Graph.Beta.DeviceAppManagement.TargetedManagedAppConfigurations; @@ -108,10 +107,6 @@ public class DeviceAppManagementRequestBuilder { } /// The request adapter to use to execute the requests. private IRequestAdapter RequestAdapter { get; set; } - /// Provides operations to manage the sideLoadingKeys property of the microsoft.graph.deviceAppManagement entity. - public SideLoadingKeysRequestBuilder SideLoadingKeys { get => - new SideLoadingKeysRequestBuilder(PathParameters, RequestAdapter); - } /// Provides operations to manage the symantecCodeSigningCertificate property of the microsoft.graph.deviceAppManagement entity. public SymantecCodeSigningCertificateRequestBuilder SymantecCodeSigningCertificate { get => new SymantecCodeSigningCertificateRequestBuilder(PathParameters, RequestAdapter); diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceManagementRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceManagementRequestBuilder.cs index dea57187992..5ca1475cb47 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceManagementRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceManagementRequestBuilder.cs @@ -144,6 +144,7 @@ using Microsoft.Graph.Beta.DeviceManagement.UserExperienceAnalyticsDeviceStartupProcesses; using Microsoft.Graph.Beta.DeviceManagement.UserExperienceAnalyticsDeviceStartupProcessPerformance; using Microsoft.Graph.Beta.DeviceManagement.UserExperienceAnalyticsDevicesWithoutCloudIdentity; +using Microsoft.Graph.Beta.DeviceManagement.UserExperienceAnalyticsDeviceTimelineEvents; using Microsoft.Graph.Beta.DeviceManagement.UserExperienceAnalyticsImpactingProcess; using Microsoft.Graph.Beta.DeviceManagement.UserExperienceAnalyticsMetricHistory; using Microsoft.Graph.Beta.DeviceManagement.UserExperienceAnalyticsModelScores; @@ -742,6 +743,10 @@ public class DeviceManagementRequestBuilder { public UserExperienceAnalyticsDevicesWithoutCloudIdentityRequestBuilder UserExperienceAnalyticsDevicesWithoutCloudIdentity { get => new UserExperienceAnalyticsDevicesWithoutCloudIdentityRequestBuilder(PathParameters, RequestAdapter); } + /// Provides operations to manage the userExperienceAnalyticsDeviceTimelineEvents property of the microsoft.graph.deviceManagement entity. + public UserExperienceAnalyticsDeviceTimelineEventsRequestBuilder UserExperienceAnalyticsDeviceTimelineEvents { get => + new UserExperienceAnalyticsDeviceTimelineEventsRequestBuilder(PathParameters, RequestAdapter); + } /// Provides operations to manage the userExperienceAnalyticsImpactingProcess property of the microsoft.graph.deviceManagement entity. public UserExperienceAnalyticsImpactingProcessRequestBuilder UserExperienceAnalyticsImpactingProcess { get => new UserExperienceAnalyticsImpactingProcessRequestBuilder(PathParameters, RequestAdapter); diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/GroupPolicyMigrationReports/Item/GroupPolicyMigrationReportItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/GroupPolicyMigrationReports/Item/GroupPolicyMigrationReportItemRequestBuilder.cs index d142da93866..72f397d7fc9 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/GroupPolicyMigrationReports/Item/GroupPolicyMigrationReportItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/GroupPolicyMigrationReports/Item/GroupPolicyMigrationReportItemRequestBuilder.cs @@ -1,5 +1,6 @@ using Microsoft.Graph.Beta.DeviceManagement.GroupPolicyMigrationReports.Item.GroupPolicySettingMappings; using Microsoft.Graph.Beta.DeviceManagement.GroupPolicyMigrationReports.Item.UnsupportedGroupPolicyExtensions; +using Microsoft.Graph.Beta.DeviceManagement.GroupPolicyMigrationReports.Item.UpdateScopeTags; using Microsoft.Graph.Beta.Models; using Microsoft.Graph.Beta.Models.ODataErrors; using Microsoft.Kiota.Abstractions; @@ -27,6 +28,10 @@ public class GroupPolicyMigrationReportItemRequestBuilder { public UnsupportedGroupPolicyExtensionsRequestBuilder UnsupportedGroupPolicyExtensions { get => new UnsupportedGroupPolicyExtensionsRequestBuilder(PathParameters, RequestAdapter); } + /// Provides operations to call the updateScopeTags method. + public UpdateScopeTagsRequestBuilder UpdateScopeTags { get => + new UpdateScopeTagsRequestBuilder(PathParameters, RequestAdapter); + } /// Url template to use to build the URL for the current request builder private string UrlTemplate { get; set; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/GroupPolicyMigrationReports/Item/UpdateScopeTags/UpdateScopeTagsPostRequestBody.cs b/src/Microsoft.Graph/Generated/DeviceManagement/GroupPolicyMigrationReports/Item/UpdateScopeTags/UpdateScopeTagsPostRequestBody.cs new file mode 100644 index 00000000000..a05b8063e92 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceManagement/GroupPolicyMigrationReports/Item/UpdateScopeTags/UpdateScopeTagsPostRequestBody.cs @@ -0,0 +1,54 @@ +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +namespace Microsoft.Graph.Beta.DeviceManagement.GroupPolicyMigrationReports.Item.UpdateScopeTags { + public class UpdateScopeTagsPostRequestBody : IAdditionalDataHolder, IBackedModel, IParsable { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { + get { return BackingStore?.Get>("additionalData"); } + set { BackingStore?.Set("additionalData", value); } + } + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// The roleScopeTagIds property + public List RoleScopeTagIds { + get { return BackingStore?.Get>("roleScopeTagIds"); } + set { BackingStore?.Set("roleScopeTagIds", value); } + } + /// + /// Instantiates a new updateScopeTagsPostRequestBody and sets the default values. + /// + public UpdateScopeTagsPostRequestBody() { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static UpdateScopeTagsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new UpdateScopeTagsPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + public IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"roleScopeTagIds", n => { RoleScopeTagIds = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteCollectionOfPrimitiveValues("roleScopeTagIds", RoleScopeTagIds); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/GroupPolicyMigrationReports/Item/UpdateScopeTags/UpdateScopeTagsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/GroupPolicyMigrationReports/Item/UpdateScopeTags/UpdateScopeTagsRequestBuilder.cs new file mode 100644 index 00000000000..196fc0ace71 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceManagement/GroupPolicyMigrationReports/Item/UpdateScopeTags/UpdateScopeTagsRequestBuilder.cs @@ -0,0 +1,102 @@ +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +namespace Microsoft.Graph.Beta.DeviceManagement.GroupPolicyMigrationReports.Item.UpdateScopeTags { + /// + /// Provides operations to call the updateScopeTags method. + /// + public class UpdateScopeTagsRequestBuilder { + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// + /// Instantiates a new UpdateScopeTagsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UpdateScopeTagsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) { + _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/deviceManagement/groupPolicyMigrationReports/{groupPolicyMigrationReport%2Did}/microsoft.graph.updateScopeTags"; + var urlTplParams = new Dictionary(pathParameters); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Instantiates a new UpdateScopeTagsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UpdateScopeTagsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { + if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/deviceManagement/groupPolicyMigrationReports/{groupPolicyMigrationReport%2Did}/microsoft.graph.updateScopeTags"; + var urlTplParams = new Dictionary(); + urlTplParams.Add("request-raw-url", rawUrl); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Invoke action updateScopeTags + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + public async Task PostAsync(UpdateScopeTagsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, UpdateScopeTagsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Invoke action updateScopeTags + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. + public RequestInformation ToPostRequestInformation(UpdateScopeTagsPostRequestBody body, Action requestConfiguration = default) { + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new UpdateScopeTagsRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class UpdateScopeTagsRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new updateScopeTagsRequestBuilderPostRequestConfiguration and sets the default values. + /// + public UpdateScopeTagsRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/GroupPolicyMigrationReports/Item/UpdateScopeTags/UpdateScopeTagsResponse.cs b/src/Microsoft.Graph/Generated/DeviceManagement/GroupPolicyMigrationReports/Item/UpdateScopeTags/UpdateScopeTagsResponse.cs new file mode 100644 index 00000000000..8c5a2b4abf7 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceManagement/GroupPolicyMigrationReports/Item/UpdateScopeTags/UpdateScopeTagsResponse.cs @@ -0,0 +1,54 @@ +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +namespace Microsoft.Graph.Beta.DeviceManagement.GroupPolicyMigrationReports.Item.UpdateScopeTags { + public class UpdateScopeTagsResponse : IAdditionalDataHolder, IBackedModel, IParsable { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { + get { return BackingStore?.Get>("additionalData"); } + set { BackingStore?.Set("additionalData", value); } + } + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// The value property + public string Value { + get { return BackingStore?.Get("value"); } + set { BackingStore?.Set("value", value); } + } + /// + /// Instantiates a new updateScopeTagsResponse and sets the default values. + /// + public UpdateScopeTagsResponse() { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static UpdateScopeTagsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new UpdateScopeTagsResponse(); + } + /// + /// The deserialization information for the current model + /// + public IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"value", n => { Value = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("value", Value); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/Monitoring/AlertRecords/Item/SetPortalNotificationAsSent/SetPortalNotificationAsSentRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/Monitoring/AlertRecords/Item/SetPortalNotificationAsSent/SetPortalNotificationAsSentRequestBuilder.cs index 6ac9863f8ad..4821a5dd366 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/Monitoring/AlertRecords/Item/SetPortalNotificationAsSent/SetPortalNotificationAsSentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/Monitoring/AlertRecords/Item/SetPortalNotificationAsSent/SetPortalNotificationAsSentRequestBuilder.cs @@ -46,7 +46,7 @@ public SetPortalNotificationAsSentRequestBuilder(string rawUrl, IRequestAdapter RequestAdapter = requestAdapter; } /// - /// Set the status of the specified notification on the Microsoft EndPoint Manager admin center as sent, by modifying the **isPortalNotificationSent** property to `true`. + /// Set the status of the notification associated with the specified alertRecord on the Microsoft EndPoint Manager admin center as sent, by setting the **isPortalNotificationSent** property of the portal notification to `true`. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -60,7 +60,7 @@ public async Task PostAsync(Action - /// Set the status of the specified notification on the Microsoft EndPoint Manager admin center as sent, by modifying the **isPortalNotificationSent** property to `true`. + /// Set the status of the notification associated with the specified alertRecord on the Microsoft EndPoint Manager admin center as sent, by setting the **isPortalNotificationSent** property of the portal notification to `true`. /// /// Configuration for the request such as headers, query parameters, and middleware options. public RequestInformation ToPostRequestInformation(Action requestConfiguration = default) { diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetDevicesWithoutCompliancePolicyReport/GetDevicesWithoutCompliancePolicyReportPostRequestBody.cs b/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetDevicesWithoutCompliancePolicyReport/GetDevicesWithoutCompliancePolicyReportPostRequestBody.cs new file mode 100644 index 00000000000..341c425522f --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetDevicesWithoutCompliancePolicyReport/GetDevicesWithoutCompliancePolicyReportPostRequestBody.cs @@ -0,0 +1,110 @@ +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +namespace Microsoft.Graph.Beta.DeviceManagement.Reports.GetDevicesWithoutCompliancePolicyReport { + public class GetDevicesWithoutCompliancePolicyReportPostRequestBody : IAdditionalDataHolder, IBackedModel, IParsable { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { + get { return BackingStore?.Get>("additionalData"); } + set { BackingStore?.Set("additionalData", value); } + } + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// The filter property + public string Filter { + get { return BackingStore?.Get("filter"); } + set { BackingStore?.Set("filter", value); } + } + /// The groupBy property + public List GroupBy { + get { return BackingStore?.Get>("groupBy"); } + set { BackingStore?.Set("groupBy", value); } + } + /// The name property + public string Name { + get { return BackingStore?.Get("name"); } + set { BackingStore?.Set("name", value); } + } + /// The orderBy property + public List OrderBy { + get { return BackingStore?.Get>("orderBy"); } + set { BackingStore?.Set("orderBy", value); } + } + /// The search property + public string Search { + get { return BackingStore?.Get("search"); } + set { BackingStore?.Set("search", value); } + } + /// The select property + public List Select { + get { return BackingStore?.Get>("select"); } + set { BackingStore?.Set("select", value); } + } + /// The sessionId property + public string SessionId { + get { return BackingStore?.Get("sessionId"); } + set { BackingStore?.Set("sessionId", value); } + } + /// The skip property + public int? Skip { + get { return BackingStore?.Get("skip"); } + set { BackingStore?.Set("skip", value); } + } + /// The top property + public int? Top { + get { return BackingStore?.Get("top"); } + set { BackingStore?.Set("top", value); } + } + /// + /// Instantiates a new getDevicesWithoutCompliancePolicyReportPostRequestBody and sets the default values. + /// + public GetDevicesWithoutCompliancePolicyReportPostRequestBody() { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static GetDevicesWithoutCompliancePolicyReportPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GetDevicesWithoutCompliancePolicyReportPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + public IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"filter", n => { Filter = n.GetStringValue(); } }, + {"groupBy", n => { GroupBy = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + {"name", n => { Name = n.GetStringValue(); } }, + {"orderBy", n => { OrderBy = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + {"search", n => { Search = n.GetStringValue(); } }, + {"select", n => { Select = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + {"sessionId", n => { SessionId = n.GetStringValue(); } }, + {"skip", n => { Skip = n.GetIntValue(); } }, + {"top", n => { Top = n.GetIntValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("filter", Filter); + writer.WriteCollectionOfPrimitiveValues("groupBy", GroupBy); + writer.WriteStringValue("name", Name); + writer.WriteCollectionOfPrimitiveValues("orderBy", OrderBy); + writer.WriteStringValue("search", Search); + writer.WriteCollectionOfPrimitiveValues("select", Select); + writer.WriteStringValue("sessionId", SessionId); + writer.WriteIntValue("skip", Skip); + writer.WriteIntValue("top", Top); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetDevicesWithoutCompliancePolicyReport/GetDevicesWithoutCompliancePolicyReportRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetDevicesWithoutCompliancePolicyReport/GetDevicesWithoutCompliancePolicyReportRequestBuilder.cs new file mode 100644 index 00000000000..4f8622ff843 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetDevicesWithoutCompliancePolicyReport/GetDevicesWithoutCompliancePolicyReportRequestBuilder.cs @@ -0,0 +1,101 @@ +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +namespace Microsoft.Graph.Beta.DeviceManagement.Reports.GetDevicesWithoutCompliancePolicyReport { + /// + /// Provides operations to call the getDevicesWithoutCompliancePolicyReport method. + /// + public class GetDevicesWithoutCompliancePolicyReportRequestBuilder { + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// + /// Instantiates a new GetDevicesWithoutCompliancePolicyReportRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public GetDevicesWithoutCompliancePolicyReportRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) { + _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/deviceManagement/reports/microsoft.graph.getDevicesWithoutCompliancePolicyReport"; + var urlTplParams = new Dictionary(pathParameters); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Instantiates a new GetDevicesWithoutCompliancePolicyReportRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public GetDevicesWithoutCompliancePolicyReportRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { + if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/deviceManagement/reports/microsoft.graph.getDevicesWithoutCompliancePolicyReport"; + var urlTplParams = new Dictionary(); + urlTplParams.Add("request-raw-url", rawUrl); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Invoke action getDevicesWithoutCompliancePolicyReport + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + public async Task PostAsync(GetDevicesWithoutCompliancePolicyReportPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken); + } + /// + /// Invoke action getDevicesWithoutCompliancePolicyReport + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. + public RequestInformation ToPostRequestInformation(GetDevicesWithoutCompliancePolicyReportPostRequestBody body, Action requestConfiguration = default) { + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new GetDevicesWithoutCompliancePolicyReportRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class GetDevicesWithoutCompliancePolicyReportRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new getDevicesWithoutCompliancePolicyReportRequestBuilderPostRequestConfiguration and sets the default values. + /// + public GetDevicesWithoutCompliancePolicyReportRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/Reports/ReportsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/Reports/ReportsRequestBuilder.cs index 98410fe536f..4e75269a124 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/Reports/ReportsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/Reports/ReportsRequestBuilder.cs @@ -31,6 +31,7 @@ using Microsoft.Graph.Beta.DeviceManagement.Reports.GetDeviceManagementIntentPerSettingContributingProfiles; using Microsoft.Graph.Beta.DeviceManagement.Reports.GetDeviceManagementIntentSettingsReport; using Microsoft.Graph.Beta.DeviceManagement.Reports.GetDeviceNonComplianceReport; +using Microsoft.Graph.Beta.DeviceManagement.Reports.GetDevicesWithoutCompliancePolicyReport; using Microsoft.Graph.Beta.DeviceManagement.Reports.GetEncryptionReportForDevices; using Microsoft.Graph.Beta.DeviceManagement.Reports.GetEnrollmentConfigurationPoliciesByDevice; using Microsoft.Graph.Beta.DeviceManagement.Reports.GetFailedMobileAppsReport; @@ -206,6 +207,10 @@ public class ReportsRequestBuilder { public GetDeviceNonComplianceReportRequestBuilder GetDeviceNonComplianceReport { get => new GetDeviceNonComplianceReportRequestBuilder(PathParameters, RequestAdapter); } + /// Provides operations to call the getDevicesWithoutCompliancePolicyReport method. + public GetDevicesWithoutCompliancePolicyReportRequestBuilder GetDevicesWithoutCompliancePolicyReport { get => + new GetDevicesWithoutCompliancePolicyReportRequestBuilder(PathParameters, RequestAdapter); + } /// Provides operations to call the getEncryptionReportForDevices method. public GetEncryptionReportForDevicesRequestBuilder GetEncryptionReportForDevices { get => new GetEncryptionReportForDevicesRequestBuilder(PathParameters, RequestAdapter); diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsDeviceTimelineEvents/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsDeviceTimelineEvents/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..d9c019bda71 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsDeviceTimelineEvents/Count/CountRequestBuilder.cs @@ -0,0 +1,97 @@ +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +namespace Microsoft.Graph.Beta.DeviceManagement.UserExperienceAnalyticsDeviceTimelineEvents.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder { + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) { + _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/deviceManagement/userExperienceAnalyticsDeviceTimelineEvents/$count"; + var urlTplParams = new Dictionary(pathParameters); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { + if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/deviceManagement/userExperienceAnalyticsDeviceTimelineEvents/$count"; + var urlTplParams = new Dictionary(); + urlTplParams.Add("request-raw-url", rawUrl); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsDeviceTimelineEvents/Item/UserExperienceAnalyticsDeviceTimelineEventsItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsDeviceTimelineEvents/Item/UserExperienceAnalyticsDeviceTimelineEventsItemRequestBuilder.cs new file mode 100644 index 00000000000..9280bf310e0 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsDeviceTimelineEvents/Item/UserExperienceAnalyticsDeviceTimelineEventsItemRequestBuilder.cs @@ -0,0 +1,212 @@ +using Microsoft.Graph.Beta.Models; +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +namespace Microsoft.Graph.Beta.DeviceManagement.UserExperienceAnalyticsDeviceTimelineEvents.Item { + /// + /// Provides operations to manage the userExperienceAnalyticsDeviceTimelineEvents property of the microsoft.graph.deviceManagement entity. + /// + public class UserExperienceAnalyticsDeviceTimelineEventsItemRequestBuilder { + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// + /// Instantiates a new UserExperienceAnalyticsDeviceTimelineEventsItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UserExperienceAnalyticsDeviceTimelineEventsItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) { + _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/deviceManagement/userExperienceAnalyticsDeviceTimelineEvents/{userExperienceAnalyticsDeviceTimelineEvents%2Did}{?%24select,%24expand}"; + var urlTplParams = new Dictionary(pathParameters); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Instantiates a new UserExperienceAnalyticsDeviceTimelineEventsItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UserExperienceAnalyticsDeviceTimelineEventsItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { + if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/deviceManagement/userExperienceAnalyticsDeviceTimelineEvents/{userExperienceAnalyticsDeviceTimelineEvents%2Did}{?%24select,%24expand}"; + var urlTplParams = new Dictionary(); + urlTplParams.Add("request-raw-url", rawUrl); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Delete navigation property userExperienceAnalyticsDeviceTimelineEvents for deviceManagement + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken); + } + /// + /// The user experience analytics device events entity contains NRT device timeline events details. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Beta.Models.UserExperienceAnalyticsDeviceTimelineEvents.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Update the navigation property userExperienceAnalyticsDeviceTimelineEvents in deviceManagement + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + public async Task PatchAsync(Microsoft.Graph.Beta.Models.UserExperienceAnalyticsDeviceTimelineEvents body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Beta.Models.UserExperienceAnalyticsDeviceTimelineEvents.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Delete navigation property userExperienceAnalyticsDeviceTimelineEvents for deviceManagement + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new UserExperienceAnalyticsDeviceTimelineEventsItemRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// The user experience analytics device events entity contains NRT device timeline events details. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new UserExperienceAnalyticsDeviceTimelineEventsItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update the navigation property userExperienceAnalyticsDeviceTimelineEvents in deviceManagement + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. + public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Beta.Models.UserExperienceAnalyticsDeviceTimelineEvents body, Action requestConfiguration = default) { + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new UserExperienceAnalyticsDeviceTimelineEventsItemRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class UserExperienceAnalyticsDeviceTimelineEventsItemRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new UserExperienceAnalyticsDeviceTimelineEventsItemRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public UserExperienceAnalyticsDeviceTimelineEventsItemRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// The user experience analytics device events entity contains NRT device timeline events details. + /// + public class UserExperienceAnalyticsDeviceTimelineEventsItemRequestBuilderGetQueryParameters { + /// Expand related entities + [QueryParameter("%24expand")] + public string[] Expand { get; set; } + /// Select properties to be returned + [QueryParameter("%24select")] + public string[] Select { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class UserExperienceAnalyticsDeviceTimelineEventsItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public UserExperienceAnalyticsDeviceTimelineEventsItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new UserExperienceAnalyticsDeviceTimelineEventsItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new UserExperienceAnalyticsDeviceTimelineEventsItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public UserExperienceAnalyticsDeviceTimelineEventsItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class UserExperienceAnalyticsDeviceTimelineEventsItemRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new UserExperienceAnalyticsDeviceTimelineEventsItemRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public UserExperienceAnalyticsDeviceTimelineEventsItemRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsDeviceTimelineEvents/UserExperienceAnalyticsDeviceTimelineEventsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsDeviceTimelineEvents/UserExperienceAnalyticsDeviceTimelineEventsRequestBuilder.cs new file mode 100644 index 00000000000..c84f90d63a7 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsDeviceTimelineEvents/UserExperienceAnalyticsDeviceTimelineEventsRequestBuilder.cs @@ -0,0 +1,195 @@ +using Microsoft.Graph.Beta.DeviceManagement.UserExperienceAnalyticsDeviceTimelineEvents.Count; +using Microsoft.Graph.Beta.DeviceManagement.UserExperienceAnalyticsDeviceTimelineEvents.Item; +using Microsoft.Graph.Beta.Models; +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +namespace Microsoft.Graph.Beta.DeviceManagement.UserExperienceAnalyticsDeviceTimelineEvents { + /// + /// Provides operations to manage the userExperienceAnalyticsDeviceTimelineEvents property of the microsoft.graph.deviceManagement entity. + /// + public class UserExperienceAnalyticsDeviceTimelineEventsRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// Provides operations to manage the userExperienceAnalyticsDeviceTimelineEvents property of the microsoft.graph.deviceManagement entity. + public UserExperienceAnalyticsDeviceTimelineEventsItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("userExperienceAnalyticsDeviceTimelineEvents%2Did", position); + return new UserExperienceAnalyticsDeviceTimelineEventsItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new UserExperienceAnalyticsDeviceTimelineEventsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UserExperienceAnalyticsDeviceTimelineEventsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) { + _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/deviceManagement/userExperienceAnalyticsDeviceTimelineEvents{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}"; + var urlTplParams = new Dictionary(pathParameters); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Instantiates a new UserExperienceAnalyticsDeviceTimelineEventsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UserExperienceAnalyticsDeviceTimelineEventsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { + if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/deviceManagement/userExperienceAnalyticsDeviceTimelineEvents{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}"; + var urlTplParams = new Dictionary(); + urlTplParams.Add("request-raw-url", rawUrl); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// The user experience analytics device events entity contains NRT device timeline events details. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, UserExperienceAnalyticsDeviceTimelineEventsCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Create new navigation property to userExperienceAnalyticsDeviceTimelineEvents for deviceManagement + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + public async Task PostAsync(Microsoft.Graph.Beta.Models.UserExperienceAnalyticsDeviceTimelineEvents body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Beta.Models.UserExperienceAnalyticsDeviceTimelineEvents.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// The user experience analytics device events entity contains NRT device timeline events details. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new UserExperienceAnalyticsDeviceTimelineEventsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Create new navigation property to userExperienceAnalyticsDeviceTimelineEvents for deviceManagement + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. + public RequestInformation ToPostRequestInformation(Microsoft.Graph.Beta.Models.UserExperienceAnalyticsDeviceTimelineEvents body, Action requestConfiguration = default) { + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new UserExperienceAnalyticsDeviceTimelineEventsRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// The user experience analytics device events entity contains NRT device timeline events details. + /// + public class UserExperienceAnalyticsDeviceTimelineEventsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities + [QueryParameter("%24expand")] + public string[] Expand { get; set; } + /// Filter items by property values + [QueryParameter("%24filter")] + public string Filter { get; set; } + /// Order items by property values + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } + /// Search items by search phrases + [QueryParameter("%24search")] + public string Search { get; set; } + /// Select properties to be returned + [QueryParameter("%24select")] + public string[] Select { get; set; } + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class UserExperienceAnalyticsDeviceTimelineEventsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public UserExperienceAnalyticsDeviceTimelineEventsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new UserExperienceAnalyticsDeviceTimelineEventsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new userExperienceAnalyticsDeviceTimelineEventsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public UserExperienceAnalyticsDeviceTimelineEventsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class UserExperienceAnalyticsDeviceTimelineEventsRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new userExperienceAnalyticsDeviceTimelineEventsRequestBuilderPostRequestConfiguration and sets the default values. + /// + public UserExperienceAnalyticsDeviceTimelineEventsRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/ConversationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/ConversationsRequestBuilder.cs index 0bf156d2479..a36e0a65394 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/ConversationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/ConversationsRequestBuilder.cs @@ -73,8 +73,8 @@ public async Task GetAsync(Action(requestInfo, ConversationCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Create a new conversation by including a thread and a post. Use reply thread or reply post to further post to that conversation. - /// Find more info here + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. See known limitations of open extensions for more information. The table in the Permissions section lists the resources that support open extensions. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new conversation by including a thread and a post. Use reply thread or reply post to further post to that conversation. + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. See known limitations of open extensions for more information. The table in the Permissions section lists the resources that support open extensions. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/MessagesRequestBuilder.cs index 3c4d007f4c1..c2666e534cb 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/MessagesRequestBuilder.cs @@ -80,8 +80,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Send a new chatMessage in the specified channel or a chat. - /// Find more info here + /// Send a new chatMessage in the specified channel. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -116,7 +116,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Send a new chatMessage in the specified channel or a chat. + /// Send a new chatMessage in the specified channel. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/MessagesRequestBuilder.cs index 84a2427d90a..a4f10ec98e2 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/MessagesRequestBuilder.cs @@ -80,8 +80,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Send a new chatMessage in the specified channel or a chat. - /// Find more info here + /// Send a new chatMessage in the specified channel. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -116,7 +116,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Send a new chatMessage in the specified channel or a chat. + /// Send a new chatMessage in the specified channel. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/IdentityGovernanceRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/IdentityGovernanceRequestBuilder.cs index 58c006b123d..32d321d6cb2 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/IdentityGovernanceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/IdentityGovernanceRequestBuilder.cs @@ -2,6 +2,7 @@ using Microsoft.Graph.Beta.IdentityGovernance.AppConsent; using Microsoft.Graph.Beta.IdentityGovernance.EntitlementManagement; using Microsoft.Graph.Beta.IdentityGovernance.LifecycleWorkflows; +using Microsoft.Graph.Beta.IdentityGovernance.PrivilegedAccess; using Microsoft.Graph.Beta.IdentityGovernance.TermsOfUse; using Microsoft.Graph.Beta.Models.IdentityGovernance; using Microsoft.Graph.Beta.Models.ODataErrors; @@ -36,6 +37,10 @@ public class IdentityGovernanceRequestBuilder { } /// Path parameters for the request private Dictionary PathParameters { get; set; } + /// Provides operations to manage the privilegedAccess property of the microsoft.graph.identityGovernance entity. + public PrivilegedAccessRequestBuilder PrivilegedAccess { get => + new PrivilegedAccessRequestBuilder(PathParameters, RequestAdapter); + } /// The request adapter to use to execute the requests. private IRequestAdapter RequestAdapter { get; set; } /// Provides operations to manage the termsOfUse property of the microsoft.graph.identityGovernance entity. diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/DeletedItemsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/DeletedItemsRequestBuilder.cs index eff229be68f..a3f4a2e9646 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/DeletedItemsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/DeletedItemsRequestBuilder.cs @@ -78,21 +78,6 @@ public async Task GetAsync(Action(requestInfo, DeletedItemContainer.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Update the navigation property deletedItems in identityGovernance - /// - /// The request body - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - public async Task PatchAsync(DeletedItemContainer body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPatchRequestInformation(body, requestConfiguration); - var errorMapping = new Dictionary> { - {"4XX", ODataError.CreateFromDiscriminatorValue}, - {"5XX", ODataError.CreateFromDiscriminatorValue}, - }; - return await RequestAdapter.SendAsync(requestInfo, DeletedItemContainer.CreateFromDiscriminatorValue, errorMapping, cancellationToken); - } - /// /// Delete navigation property deletedItems for identityGovernance /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -131,28 +116,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the navigation property deletedItems in identityGovernance - /// - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. - public RequestInformation ToPatchRequestInformation(DeletedItemContainer body, Action requestConfiguration = default) { - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation { - HttpMethod = Method.PATCH, - UrlTemplate = UrlTemplate, - PathParameters = PathParameters, - }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - if (requestConfiguration != null) { - var requestConfig = new DeletedItemsRequestBuilderPatchRequestConfiguration(); - requestConfiguration.Invoke(requestConfig); - requestInfo.AddRequestOptions(requestConfig.Options); - requestInfo.AddHeaders(requestConfig.Headers); - } - return requestInfo; - } - /// /// Configuration for the request such as headers, query parameters, and middleware options. /// public class DeletedItemsRequestBuilderDeleteRequestConfiguration { @@ -197,21 +160,5 @@ public DeletedItemsRequestBuilderGetRequestConfiguration() { Headers = new RequestHeaders(); } } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - public class DeletedItemsRequestBuilderPatchRequestConfiguration { - /// Request headers - public RequestHeaders Headers { get; set; } - /// Request options - public IList Options { get; set; } - /// - /// Instantiates a new deletedItemsRequestBuilderPatchRequestConfiguration and sets the default values. - /// - public DeletedItemsRequestBuilderPatchRequestConfiguration() { - Options = new List(); - Headers = new RequestHeaders(); - } - } } } diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/RunItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/RunItemRequestBuilder.cs index 24366ceaf4d..ec35af4ebd4 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/RunItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/RunItemRequestBuilder.cs @@ -57,19 +57,6 @@ public RunItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { RequestAdapter = requestAdapter; } /// - /// Delete navigation property runs for identityGovernance - /// - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { - var requestInfo = ToDeleteRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> { - {"4XX", ODataError.CreateFromDiscriminatorValue}, - {"5XX", ODataError.CreateFromDiscriminatorValue}, - }; - await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken); - } - /// /// Get runs from identityGovernance /// /// Cancellation token to use when cancelling requests @@ -83,39 +70,6 @@ public async Task DeleteAsync(Action(requestInfo, Microsoft.Graph.Beta.Models.IdentityGovernance.Run.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Update the navigation property runs in identityGovernance - /// - /// The request body - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - public async Task PatchAsync(Microsoft.Graph.Beta.Models.IdentityGovernance.Run body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPatchRequestInformation(body, requestConfiguration); - var errorMapping = new Dictionary> { - {"4XX", ODataError.CreateFromDiscriminatorValue}, - {"5XX", ODataError.CreateFromDiscriminatorValue}, - }; - return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Beta.Models.IdentityGovernance.Run.CreateFromDiscriminatorValue, errorMapping, cancellationToken); - } - /// - /// Delete navigation property runs for identityGovernance - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { - var requestInfo = new RequestInformation { - HttpMethod = Method.DELETE, - UrlTemplate = UrlTemplate, - PathParameters = PathParameters, - }; - if (requestConfiguration != null) { - var requestConfig = new RunItemRequestBuilderDeleteRequestConfiguration(); - requestConfiguration.Invoke(requestConfig); - requestInfo.AddRequestOptions(requestConfig.Options); - requestInfo.AddHeaders(requestConfig.Headers); - } - return requestInfo; - } - /// /// Get runs from identityGovernance /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -136,44 +90,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the navigation property runs in identityGovernance - /// - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. - public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Beta.Models.IdentityGovernance.Run body, Action requestConfiguration = default) { - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation { - HttpMethod = Method.PATCH, - UrlTemplate = UrlTemplate, - PathParameters = PathParameters, - }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - if (requestConfiguration != null) { - var requestConfig = new RunItemRequestBuilderPatchRequestConfiguration(); - requestConfiguration.Invoke(requestConfig); - requestInfo.AddRequestOptions(requestConfig.Options); - requestInfo.AddHeaders(requestConfig.Headers); - } - return requestInfo; - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - public class RunItemRequestBuilderDeleteRequestConfiguration { - /// Request headers - public RequestHeaders Headers { get; set; } - /// Request options - public IList Options { get; set; } - /// - /// Instantiates a new RunItemRequestBuilderDeleteRequestConfiguration and sets the default values. - /// - public RunItemRequestBuilderDeleteRequestConfiguration() { - Options = new List(); - Headers = new RequestHeaders(); - } - } - /// /// Get runs from identityGovernance /// public class RunItemRequestBuilderGetQueryParameters { @@ -202,21 +118,5 @@ public RunItemRequestBuilderGetRequestConfiguration() { Headers = new RequestHeaders(); } } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - public class RunItemRequestBuilderPatchRequestConfiguration { - /// Request headers - public RequestHeaders Headers { get; set; } - /// Request options - public IList Options { get; set; } - /// - /// Instantiates a new RunItemRequestBuilderPatchRequestConfiguration and sets the default values. - /// - public RunItemRequestBuilderPatchRequestConfiguration() { - Options = new List(); - Headers = new RequestHeaders(); - } - } } } diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.cs index fe40d8a8324..2d4f59fc14b 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.cs @@ -62,19 +62,6 @@ public TaskProcessingResultItemRequestBuilder(string rawUrl, IRequestAdapter req RequestAdapter = requestAdapter; } /// - /// Delete navigation property taskProcessingResults for identityGovernance - /// - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { - var requestInfo = ToDeleteRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> { - {"4XX", ODataError.CreateFromDiscriminatorValue}, - {"5XX", ODataError.CreateFromDiscriminatorValue}, - }; - await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken); - } - /// /// The related taskProcessingResults. /// /// Cancellation token to use when cancelling requests @@ -88,39 +75,6 @@ public async Task GetAsync(Action(requestInfo, TaskProcessingResult.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Update the navigation property taskProcessingResults in identityGovernance - /// - /// The request body - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - public async Task PatchAsync(TaskProcessingResult body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPatchRequestInformation(body, requestConfiguration); - var errorMapping = new Dictionary> { - {"4XX", ODataError.CreateFromDiscriminatorValue}, - {"5XX", ODataError.CreateFromDiscriminatorValue}, - }; - return await RequestAdapter.SendAsync(requestInfo, TaskProcessingResult.CreateFromDiscriminatorValue, errorMapping, cancellationToken); - } - /// - /// Delete navigation property taskProcessingResults for identityGovernance - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { - var requestInfo = new RequestInformation { - HttpMethod = Method.DELETE, - UrlTemplate = UrlTemplate, - PathParameters = PathParameters, - }; - if (requestConfiguration != null) { - var requestConfig = new TaskProcessingResultItemRequestBuilderDeleteRequestConfiguration(); - requestConfiguration.Invoke(requestConfig); - requestInfo.AddRequestOptions(requestConfig.Options); - requestInfo.AddHeaders(requestConfig.Headers); - } - return requestInfo; - } - /// /// The related taskProcessingResults. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -141,44 +95,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the navigation property taskProcessingResults in identityGovernance - /// - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. - public RequestInformation ToPatchRequestInformation(TaskProcessingResult body, Action requestConfiguration = default) { - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation { - HttpMethod = Method.PATCH, - UrlTemplate = UrlTemplate, - PathParameters = PathParameters, - }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - if (requestConfiguration != null) { - var requestConfig = new TaskProcessingResultItemRequestBuilderPatchRequestConfiguration(); - requestConfiguration.Invoke(requestConfig); - requestInfo.AddRequestOptions(requestConfig.Options); - requestInfo.AddHeaders(requestConfig.Headers); - } - return requestInfo; - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - public class TaskProcessingResultItemRequestBuilderDeleteRequestConfiguration { - /// Request headers - public RequestHeaders Headers { get; set; } - /// Request options - public IList Options { get; set; } - /// - /// Instantiates a new TaskProcessingResultItemRequestBuilderDeleteRequestConfiguration and sets the default values. - /// - public TaskProcessingResultItemRequestBuilderDeleteRequestConfiguration() { - Options = new List(); - Headers = new RequestHeaders(); - } - } - /// /// The related taskProcessingResults. /// public class TaskProcessingResultItemRequestBuilderGetQueryParameters { @@ -207,21 +123,5 @@ public TaskProcessingResultItemRequestBuilderGetRequestConfiguration() { Headers = new RequestHeaders(); } } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - public class TaskProcessingResultItemRequestBuilderPatchRequestConfiguration { - /// Request headers - public RequestHeaders Headers { get; set; } - /// Request options - public IList Options { get; set; } - /// - /// Instantiates a new TaskProcessingResultItemRequestBuilderPatchRequestConfiguration and sets the default values. - /// - public TaskProcessingResultItemRequestBuilderPatchRequestConfiguration() { - Options = new List(); - Headers = new RequestHeaders(); - } - } } } diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs index 5f027cfe672..a4ab98dbbf9 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs @@ -72,21 +72,6 @@ public async Task GetAsync(Action(requestInfo, TaskProcessingResultCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Create new navigation property to taskProcessingResults for identityGovernance - /// - /// The request body - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - public async Task PostAsync(TaskProcessingResult body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - var errorMapping = new Dictionary> { - {"4XX", ODataError.CreateFromDiscriminatorValue}, - {"5XX", ODataError.CreateFromDiscriminatorValue}, - }; - return await RequestAdapter.SendAsync(requestInfo, TaskProcessingResult.CreateFromDiscriminatorValue, errorMapping, cancellationToken); - } - /// /// The related taskProcessingResults. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -107,28 +92,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Create new navigation property to taskProcessingResults for identityGovernance - /// - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. - public RequestInformation ToPostRequestInformation(TaskProcessingResult body, Action requestConfiguration = default) { - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation { - HttpMethod = Method.POST, - UrlTemplate = UrlTemplate, - PathParameters = PathParameters, - }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - if (requestConfiguration != null) { - var requestConfig = new TaskProcessingResultsRequestBuilderPostRequestConfiguration(); - requestConfiguration.Invoke(requestConfig); - requestInfo.AddRequestOptions(requestConfig.Options); - requestInfo.AddHeaders(requestConfig.Headers); - } - return requestInfo; - } - /// /// The related taskProcessingResults. /// public class TaskProcessingResultsRequestBuilderGetQueryParameters { @@ -175,21 +138,5 @@ public TaskProcessingResultsRequestBuilderGetRequestConfiguration() { Headers = new RequestHeaders(); } } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - public class TaskProcessingResultsRequestBuilderPostRequestConfiguration { - /// Request headers - public RequestHeaders Headers { get; set; } - /// Request options - public IList Options { get; set; } - /// - /// Instantiates a new taskProcessingResultsRequestBuilderPostRequestConfiguration and sets the default values. - /// - public TaskProcessingResultsRequestBuilderPostRequestConfiguration() { - Options = new List(); - Headers = new RequestHeaders(); - } - } } } diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.cs index 636ed534b0d..f079de8c1b7 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.cs @@ -62,19 +62,6 @@ public TaskProcessingResultItemRequestBuilder(string rawUrl, IRequestAdapter req RequestAdapter = requestAdapter; } /// - /// Delete navigation property taskProcessingResults for identityGovernance - /// - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { - var requestInfo = ToDeleteRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> { - {"4XX", ODataError.CreateFromDiscriminatorValue}, - {"5XX", ODataError.CreateFromDiscriminatorValue}, - }; - await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken); - } - /// /// The associated individual task execution. /// /// Cancellation token to use when cancelling requests @@ -88,39 +75,6 @@ public async Task GetAsync(Action(requestInfo, TaskProcessingResult.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Update the navigation property taskProcessingResults in identityGovernance - /// - /// The request body - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - public async Task PatchAsync(TaskProcessingResult body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPatchRequestInformation(body, requestConfiguration); - var errorMapping = new Dictionary> { - {"4XX", ODataError.CreateFromDiscriminatorValue}, - {"5XX", ODataError.CreateFromDiscriminatorValue}, - }; - return await RequestAdapter.SendAsync(requestInfo, TaskProcessingResult.CreateFromDiscriminatorValue, errorMapping, cancellationToken); - } - /// - /// Delete navigation property taskProcessingResults for identityGovernance - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { - var requestInfo = new RequestInformation { - HttpMethod = Method.DELETE, - UrlTemplate = UrlTemplate, - PathParameters = PathParameters, - }; - if (requestConfiguration != null) { - var requestConfig = new TaskProcessingResultItemRequestBuilderDeleteRequestConfiguration(); - requestConfiguration.Invoke(requestConfig); - requestInfo.AddRequestOptions(requestConfig.Options); - requestInfo.AddHeaders(requestConfig.Headers); - } - return requestInfo; - } - /// /// The associated individual task execution. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -141,44 +95,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the navigation property taskProcessingResults in identityGovernance - /// - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. - public RequestInformation ToPatchRequestInformation(TaskProcessingResult body, Action requestConfiguration = default) { - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation { - HttpMethod = Method.PATCH, - UrlTemplate = UrlTemplate, - PathParameters = PathParameters, - }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - if (requestConfiguration != null) { - var requestConfig = new TaskProcessingResultItemRequestBuilderPatchRequestConfiguration(); - requestConfiguration.Invoke(requestConfig); - requestInfo.AddRequestOptions(requestConfig.Options); - requestInfo.AddHeaders(requestConfig.Headers); - } - return requestInfo; - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - public class TaskProcessingResultItemRequestBuilderDeleteRequestConfiguration { - /// Request headers - public RequestHeaders Headers { get; set; } - /// Request options - public IList Options { get; set; } - /// - /// Instantiates a new TaskProcessingResultItemRequestBuilderDeleteRequestConfiguration and sets the default values. - /// - public TaskProcessingResultItemRequestBuilderDeleteRequestConfiguration() { - Options = new List(); - Headers = new RequestHeaders(); - } - } - /// /// The associated individual task execution. /// public class TaskProcessingResultItemRequestBuilderGetQueryParameters { @@ -207,21 +123,5 @@ public TaskProcessingResultItemRequestBuilderGetRequestConfiguration() { Headers = new RequestHeaders(); } } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - public class TaskProcessingResultItemRequestBuilderPatchRequestConfiguration { - /// Request headers - public RequestHeaders Headers { get; set; } - /// Request options - public IList Options { get; set; } - /// - /// Instantiates a new TaskProcessingResultItemRequestBuilderPatchRequestConfiguration and sets the default values. - /// - public TaskProcessingResultItemRequestBuilderPatchRequestConfiguration() { - Options = new List(); - Headers = new RequestHeaders(); - } - } } } diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs index 795f1db3924..df07097e7ea 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs @@ -73,21 +73,6 @@ public async Task GetAsync(Action(requestInfo, TaskProcessingResultCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Create new navigation property to taskProcessingResults for identityGovernance - /// - /// The request body - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - public async Task PostAsync(TaskProcessingResult body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - var errorMapping = new Dictionary> { - {"4XX", ODataError.CreateFromDiscriminatorValue}, - {"5XX", ODataError.CreateFromDiscriminatorValue}, - }; - return await RequestAdapter.SendAsync(requestInfo, TaskProcessingResult.CreateFromDiscriminatorValue, errorMapping, cancellationToken); - } - /// /// Get the taskProcessingResult resources for a userProcessingResult from a run. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -108,28 +93,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Create new navigation property to taskProcessingResults for identityGovernance - /// - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. - public RequestInformation ToPostRequestInformation(TaskProcessingResult body, Action requestConfiguration = default) { - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation { - HttpMethod = Method.POST, - UrlTemplate = UrlTemplate, - PathParameters = PathParameters, - }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - if (requestConfiguration != null) { - var requestConfig = new TaskProcessingResultsRequestBuilderPostRequestConfiguration(); - requestConfiguration.Invoke(requestConfig); - requestInfo.AddRequestOptions(requestConfig.Options); - requestInfo.AddHeaders(requestConfig.Headers); - } - return requestInfo; - } - /// /// Get the taskProcessingResult resources for a userProcessingResult from a run. /// public class TaskProcessingResultsRequestBuilderGetQueryParameters { @@ -176,21 +139,5 @@ public TaskProcessingResultsRequestBuilderGetRequestConfiguration() { Headers = new RequestHeaders(); } } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - public class TaskProcessingResultsRequestBuilderPostRequestConfiguration { - /// Request headers - public RequestHeaders Headers { get; set; } - /// Request options - public IList Options { get; set; } - /// - /// Instantiates a new taskProcessingResultsRequestBuilderPostRequestConfiguration and sets the default values. - /// - public TaskProcessingResultsRequestBuilderPostRequestConfiguration() { - Options = new List(); - Headers = new RequestHeaders(); - } - } } } diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/UserProcessingResultItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/UserProcessingResultItemRequestBuilder.cs index b5c515d4f5c..cfc98bbed71 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/UserProcessingResultItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/UserProcessingResultItemRequestBuilder.cs @@ -57,19 +57,6 @@ public UserProcessingResultItemRequestBuilder(string rawUrl, IRequestAdapter req RequestAdapter = requestAdapter; } /// - /// Delete navigation property userProcessingResults for identityGovernance - /// - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { - var requestInfo = ToDeleteRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> { - {"4XX", ODataError.CreateFromDiscriminatorValue}, - {"5XX", ODataError.CreateFromDiscriminatorValue}, - }; - await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken); - } - /// /// The associated individual user execution. /// /// Cancellation token to use when cancelling requests @@ -83,39 +70,6 @@ public async Task GetAsync(Action(requestInfo, UserProcessingResult.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Update the navigation property userProcessingResults in identityGovernance - /// - /// The request body - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - public async Task PatchAsync(UserProcessingResult body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPatchRequestInformation(body, requestConfiguration); - var errorMapping = new Dictionary> { - {"4XX", ODataError.CreateFromDiscriminatorValue}, - {"5XX", ODataError.CreateFromDiscriminatorValue}, - }; - return await RequestAdapter.SendAsync(requestInfo, UserProcessingResult.CreateFromDiscriminatorValue, errorMapping, cancellationToken); - } - /// - /// Delete navigation property userProcessingResults for identityGovernance - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { - var requestInfo = new RequestInformation { - HttpMethod = Method.DELETE, - UrlTemplate = UrlTemplate, - PathParameters = PathParameters, - }; - if (requestConfiguration != null) { - var requestConfig = new UserProcessingResultItemRequestBuilderDeleteRequestConfiguration(); - requestConfiguration.Invoke(requestConfig); - requestInfo.AddRequestOptions(requestConfig.Options); - requestInfo.AddHeaders(requestConfig.Headers); - } - return requestInfo; - } - /// /// The associated individual user execution. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -136,44 +90,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the navigation property userProcessingResults in identityGovernance - /// - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. - public RequestInformation ToPatchRequestInformation(UserProcessingResult body, Action requestConfiguration = default) { - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation { - HttpMethod = Method.PATCH, - UrlTemplate = UrlTemplate, - PathParameters = PathParameters, - }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - if (requestConfiguration != null) { - var requestConfig = new UserProcessingResultItemRequestBuilderPatchRequestConfiguration(); - requestConfiguration.Invoke(requestConfig); - requestInfo.AddRequestOptions(requestConfig.Options); - requestInfo.AddHeaders(requestConfig.Headers); - } - return requestInfo; - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - public class UserProcessingResultItemRequestBuilderDeleteRequestConfiguration { - /// Request headers - public RequestHeaders Headers { get; set; } - /// Request options - public IList Options { get; set; } - /// - /// Instantiates a new UserProcessingResultItemRequestBuilderDeleteRequestConfiguration and sets the default values. - /// - public UserProcessingResultItemRequestBuilderDeleteRequestConfiguration() { - Options = new List(); - Headers = new RequestHeaders(); - } - } - /// /// The associated individual user execution. /// public class UserProcessingResultItemRequestBuilderGetQueryParameters { @@ -202,21 +118,5 @@ public UserProcessingResultItemRequestBuilderGetRequestConfiguration() { Headers = new RequestHeaders(); } } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - public class UserProcessingResultItemRequestBuilderPatchRequestConfiguration { - /// Request headers - public RequestHeaders Headers { get; set; } - /// Request options - public IList Options { get; set; } - /// - /// Instantiates a new UserProcessingResultItemRequestBuilderPatchRequestConfiguration and sets the default values. - /// - public UserProcessingResultItemRequestBuilderPatchRequestConfiguration() { - Options = new List(); - Headers = new RequestHeaders(); - } - } } } diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/UserProcessingResultsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/UserProcessingResultsRequestBuilder.cs index e201525db20..7b39ddb5c3b 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/UserProcessingResultsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/UserProcessingResultsRequestBuilder.cs @@ -74,21 +74,6 @@ public async Task GetAsync(Action(requestInfo, UserProcessingResultCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Create new navigation property to userProcessingResults for identityGovernance - /// - /// The request body - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - public async Task PostAsync(UserProcessingResult body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - var errorMapping = new Dictionary> { - {"4XX", ODataError.CreateFromDiscriminatorValue}, - {"5XX", ODataError.CreateFromDiscriminatorValue}, - }; - return await RequestAdapter.SendAsync(requestInfo, UserProcessingResult.CreateFromDiscriminatorValue, errorMapping, cancellationToken); - } - /// /// Provides operations to call the summary method. /// /// Usage: endDateTime={endDateTime} @@ -119,28 +104,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Create new navigation property to userProcessingResults for identityGovernance - /// - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. - public RequestInformation ToPostRequestInformation(UserProcessingResult body, Action requestConfiguration = default) { - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation { - HttpMethod = Method.POST, - UrlTemplate = UrlTemplate, - PathParameters = PathParameters, - }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - if (requestConfiguration != null) { - var requestConfig = new UserProcessingResultsRequestBuilderPostRequestConfiguration(); - requestConfiguration.Invoke(requestConfig); - requestInfo.AddRequestOptions(requestConfig.Options); - requestInfo.AddHeaders(requestConfig.Headers); - } - return requestInfo; - } - /// /// Get user processing results of a workflow run object. /// public class UserProcessingResultsRequestBuilderGetQueryParameters { @@ -187,21 +150,5 @@ public UserProcessingResultsRequestBuilderGetRequestConfiguration() { Headers = new RequestHeaders(); } } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - public class UserProcessingResultsRequestBuilderPostRequestConfiguration { - /// Request headers - public RequestHeaders Headers { get; set; } - /// Request options - public IList Options { get; set; } - /// - /// Instantiates a new userProcessingResultsRequestBuilderPostRequestConfiguration and sets the default values. - /// - public UserProcessingResultsRequestBuilderPostRequestConfiguration() { - Options = new List(); - Headers = new RequestHeaders(); - } - } } } diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/RunsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/RunsRequestBuilder.cs index a4c463ed2db..9ce5f820efd 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/RunsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/RunsRequestBuilder.cs @@ -74,21 +74,6 @@ public async Task GetAsync(Action(requestInfo, RunCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Create new navigation property to runs for identityGovernance - /// - /// The request body - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - public async Task PostAsync(Microsoft.Graph.Beta.Models.IdentityGovernance.Run body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - var errorMapping = new Dictionary> { - {"4XX", ODataError.CreateFromDiscriminatorValue}, - {"5XX", ODataError.CreateFromDiscriminatorValue}, - }; - return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Beta.Models.IdentityGovernance.Run.CreateFromDiscriminatorValue, errorMapping, cancellationToken); - } - /// /// Provides operations to call the summary method. /// /// Usage: endDateTime={endDateTime} @@ -119,28 +104,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Create new navigation property to runs for identityGovernance - /// - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. - public RequestInformation ToPostRequestInformation(Microsoft.Graph.Beta.Models.IdentityGovernance.Run body, Action requestConfiguration = default) { - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation { - HttpMethod = Method.POST, - UrlTemplate = UrlTemplate, - PathParameters = PathParameters, - }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - if (requestConfiguration != null) { - var requestConfig = new RunsRequestBuilderPostRequestConfiguration(); - requestConfiguration.Invoke(requestConfig); - requestInfo.AddRequestOptions(requestConfig.Options); - requestInfo.AddHeaders(requestConfig.Headers); - } - return requestInfo; - } - /// /// Get a list of the run objects and their properties for a lifecycle workflow. /// public class RunsRequestBuilderGetQueryParameters { @@ -187,21 +150,5 @@ public RunsRequestBuilderGetRequestConfiguration() { Headers = new RequestHeaders(); } } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - public class RunsRequestBuilderPostRequestConfiguration { - /// Request headers - public RequestHeaders Headers { get; set; } - /// Request options - public IList Options { get; set; } - /// - /// Instantiates a new runsRequestBuilderPostRequestConfiguration and sets the default values. - /// - public RunsRequestBuilderPostRequestConfiguration() { - Options = new List(); - Headers = new RequestHeaders(); - } - } } } diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.cs index ebb6458ec3d..3ec3cc10cae 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.cs @@ -62,19 +62,6 @@ public TaskProcessingResultItemRequestBuilder(string rawUrl, IRequestAdapter req RequestAdapter = requestAdapter; } /// - /// Delete navigation property taskProcessingResults for identityGovernance - /// - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { - var requestInfo = ToDeleteRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> { - {"4XX", ODataError.CreateFromDiscriminatorValue}, - {"5XX", ODataError.CreateFromDiscriminatorValue}, - }; - await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken); - } - /// /// The related lifecycle workflow taskProcessingResults. /// /// Cancellation token to use when cancelling requests @@ -88,39 +75,6 @@ public async Task GetAsync(Action(requestInfo, TaskProcessingResult.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Update the navigation property taskProcessingResults in identityGovernance - /// - /// The request body - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - public async Task PatchAsync(TaskProcessingResult body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPatchRequestInformation(body, requestConfiguration); - var errorMapping = new Dictionary> { - {"4XX", ODataError.CreateFromDiscriminatorValue}, - {"5XX", ODataError.CreateFromDiscriminatorValue}, - }; - return await RequestAdapter.SendAsync(requestInfo, TaskProcessingResult.CreateFromDiscriminatorValue, errorMapping, cancellationToken); - } - /// - /// Delete navigation property taskProcessingResults for identityGovernance - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { - var requestInfo = new RequestInformation { - HttpMethod = Method.DELETE, - UrlTemplate = UrlTemplate, - PathParameters = PathParameters, - }; - if (requestConfiguration != null) { - var requestConfig = new TaskProcessingResultItemRequestBuilderDeleteRequestConfiguration(); - requestConfiguration.Invoke(requestConfig); - requestInfo.AddRequestOptions(requestConfig.Options); - requestInfo.AddHeaders(requestConfig.Headers); - } - return requestInfo; - } - /// /// The related lifecycle workflow taskProcessingResults. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -141,44 +95,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the navigation property taskProcessingResults in identityGovernance - /// - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. - public RequestInformation ToPatchRequestInformation(TaskProcessingResult body, Action requestConfiguration = default) { - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation { - HttpMethod = Method.PATCH, - UrlTemplate = UrlTemplate, - PathParameters = PathParameters, - }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - if (requestConfiguration != null) { - var requestConfig = new TaskProcessingResultItemRequestBuilderPatchRequestConfiguration(); - requestConfiguration.Invoke(requestConfig); - requestInfo.AddRequestOptions(requestConfig.Options); - requestInfo.AddHeaders(requestConfig.Headers); - } - return requestInfo; - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - public class TaskProcessingResultItemRequestBuilderDeleteRequestConfiguration { - /// Request headers - public RequestHeaders Headers { get; set; } - /// Request options - public IList Options { get; set; } - /// - /// Instantiates a new TaskProcessingResultItemRequestBuilderDeleteRequestConfiguration and sets the default values. - /// - public TaskProcessingResultItemRequestBuilderDeleteRequestConfiguration() { - Options = new List(); - Headers = new RequestHeaders(); - } - } - /// /// The related lifecycle workflow taskProcessingResults. /// public class TaskProcessingResultItemRequestBuilderGetQueryParameters { @@ -207,21 +123,5 @@ public TaskProcessingResultItemRequestBuilderGetRequestConfiguration() { Headers = new RequestHeaders(); } } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - public class TaskProcessingResultItemRequestBuilderPatchRequestConfiguration { - /// Request headers - public RequestHeaders Headers { get; set; } - /// Request options - public IList Options { get; set; } - /// - /// Instantiates a new TaskProcessingResultItemRequestBuilderPatchRequestConfiguration and sets the default values. - /// - public TaskProcessingResultItemRequestBuilderPatchRequestConfiguration() { - Options = new List(); - Headers = new RequestHeaders(); - } - } } } diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs index d00c80781b2..804df47e71e 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs @@ -73,21 +73,6 @@ public async Task GetAsync(Action(requestInfo, TaskProcessingResultCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Create new navigation property to taskProcessingResults for identityGovernance - /// - /// The request body - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - public async Task PostAsync(TaskProcessingResult body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - var errorMapping = new Dictionary> { - {"4XX", ODataError.CreateFromDiscriminatorValue}, - {"5XX", ODataError.CreateFromDiscriminatorValue}, - }; - return await RequestAdapter.SendAsync(requestInfo, TaskProcessingResult.CreateFromDiscriminatorValue, errorMapping, cancellationToken); - } - /// /// Get the task processing result resources from the taskReport. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -108,28 +93,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Create new navigation property to taskProcessingResults for identityGovernance - /// - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. - public RequestInformation ToPostRequestInformation(TaskProcessingResult body, Action requestConfiguration = default) { - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation { - HttpMethod = Method.POST, - UrlTemplate = UrlTemplate, - PathParameters = PathParameters, - }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - if (requestConfiguration != null) { - var requestConfig = new TaskProcessingResultsRequestBuilderPostRequestConfiguration(); - requestConfiguration.Invoke(requestConfig); - requestInfo.AddRequestOptions(requestConfig.Options); - requestInfo.AddHeaders(requestConfig.Headers); - } - return requestInfo; - } - /// /// Get the task processing result resources from the taskReport. /// public class TaskProcessingResultsRequestBuilderGetQueryParameters { @@ -176,21 +139,5 @@ public TaskProcessingResultsRequestBuilderGetRequestConfiguration() { Headers = new RequestHeaders(); } } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - public class TaskProcessingResultsRequestBuilderPostRequestConfiguration { - /// Request headers - public RequestHeaders Headers { get; set; } - /// Request options - public IList Options { get; set; } - /// - /// Instantiates a new taskProcessingResultsRequestBuilderPostRequestConfiguration and sets the default values. - /// - public TaskProcessingResultsRequestBuilderPostRequestConfiguration() { - Options = new List(); - Headers = new RequestHeaders(); - } - } } } diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskReportItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskReportItemRequestBuilder.cs index b9505700707..f25e26fa55f 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskReportItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskReportItemRequestBuilder.cs @@ -62,19 +62,6 @@ public TaskReportItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapte RequestAdapter = requestAdapter; } /// - /// Delete navigation property taskReports for identityGovernance - /// - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { - var requestInfo = ToDeleteRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> { - {"4XX", ODataError.CreateFromDiscriminatorValue}, - {"5XX", ODataError.CreateFromDiscriminatorValue}, - }; - await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken); - } - /// /// Represents the aggregation of task execution data for tasks within a workflow object. /// /// Cancellation token to use when cancelling requests @@ -88,39 +75,6 @@ public async Task GetAsync(Action(requestInfo, TaskReport.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Update the navigation property taskReports in identityGovernance - /// - /// The request body - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - public async Task PatchAsync(TaskReport body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPatchRequestInformation(body, requestConfiguration); - var errorMapping = new Dictionary> { - {"4XX", ODataError.CreateFromDiscriminatorValue}, - {"5XX", ODataError.CreateFromDiscriminatorValue}, - }; - return await RequestAdapter.SendAsync(requestInfo, TaskReport.CreateFromDiscriminatorValue, errorMapping, cancellationToken); - } - /// - /// Delete navigation property taskReports for identityGovernance - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { - var requestInfo = new RequestInformation { - HttpMethod = Method.DELETE, - UrlTemplate = UrlTemplate, - PathParameters = PathParameters, - }; - if (requestConfiguration != null) { - var requestConfig = new TaskReportItemRequestBuilderDeleteRequestConfiguration(); - requestConfiguration.Invoke(requestConfig); - requestInfo.AddRequestOptions(requestConfig.Options); - requestInfo.AddHeaders(requestConfig.Headers); - } - return requestInfo; - } - /// /// Represents the aggregation of task execution data for tasks within a workflow object. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -141,44 +95,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the navigation property taskReports in identityGovernance - /// - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. - public RequestInformation ToPatchRequestInformation(TaskReport body, Action requestConfiguration = default) { - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation { - HttpMethod = Method.PATCH, - UrlTemplate = UrlTemplate, - PathParameters = PathParameters, - }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - if (requestConfiguration != null) { - var requestConfig = new TaskReportItemRequestBuilderPatchRequestConfiguration(); - requestConfiguration.Invoke(requestConfig); - requestInfo.AddRequestOptions(requestConfig.Options); - requestInfo.AddHeaders(requestConfig.Headers); - } - return requestInfo; - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - public class TaskReportItemRequestBuilderDeleteRequestConfiguration { - /// Request headers - public RequestHeaders Headers { get; set; } - /// Request options - public IList Options { get; set; } - /// - /// Instantiates a new TaskReportItemRequestBuilderDeleteRequestConfiguration and sets the default values. - /// - public TaskReportItemRequestBuilderDeleteRequestConfiguration() { - Options = new List(); - Headers = new RequestHeaders(); - } - } - /// /// Represents the aggregation of task execution data for tasks within a workflow object. /// public class TaskReportItemRequestBuilderGetQueryParameters { @@ -207,21 +123,5 @@ public TaskReportItemRequestBuilderGetRequestConfiguration() { Headers = new RequestHeaders(); } } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - public class TaskReportItemRequestBuilderPatchRequestConfiguration { - /// Request headers - public RequestHeaders Headers { get; set; } - /// Request options - public IList Options { get; set; } - /// - /// Instantiates a new TaskReportItemRequestBuilderPatchRequestConfiguration and sets the default values. - /// - public TaskReportItemRequestBuilderPatchRequestConfiguration() { - Options = new List(); - Headers = new RequestHeaders(); - } - } } } diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/TaskReportsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/TaskReportsRequestBuilder.cs index 9908a35b11e..1d90a365669 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/TaskReportsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/TaskReportsRequestBuilder.cs @@ -74,21 +74,6 @@ public async Task GetAsync(Action(requestInfo, TaskReportCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Create new navigation property to taskReports for identityGovernance - /// - /// The request body - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - public async Task PostAsync(TaskReport body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - var errorMapping = new Dictionary> { - {"4XX", ODataError.CreateFromDiscriminatorValue}, - {"5XX", ODataError.CreateFromDiscriminatorValue}, - }; - return await RequestAdapter.SendAsync(requestInfo, TaskReport.CreateFromDiscriminatorValue, errorMapping, cancellationToken); - } - /// /// Provides operations to call the summary method. /// /// Usage: endDateTime={endDateTime} @@ -119,28 +104,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Create new navigation property to taskReports for identityGovernance - /// - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. - public RequestInformation ToPostRequestInformation(TaskReport body, Action requestConfiguration = default) { - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation { - HttpMethod = Method.POST, - UrlTemplate = UrlTemplate, - PathParameters = PathParameters, - }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - if (requestConfiguration != null) { - var requestConfig = new TaskReportsRequestBuilderPostRequestConfiguration(); - requestConfiguration.Invoke(requestConfig); - requestInfo.AddRequestOptions(requestConfig.Options); - requestInfo.AddHeaders(requestConfig.Headers); - } - return requestInfo; - } - /// /// Get a list of the taskReport objects and their properties. /// public class TaskReportsRequestBuilderGetQueryParameters { @@ -187,21 +150,5 @@ public TaskReportsRequestBuilderGetRequestConfiguration() { Headers = new RequestHeaders(); } } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - public class TaskReportsRequestBuilderPostRequestConfiguration { - /// Request headers - public RequestHeaders Headers { get; set; } - /// Request options - public IList Options { get; set; } - /// - /// Instantiates a new taskReportsRequestBuilderPostRequestConfiguration and sets the default values. - /// - public TaskReportsRequestBuilderPostRequestConfiguration() { - Options = new List(); - Headers = new RequestHeaders(); - } - } } } diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.cs index d682b45721c..735445d387b 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.cs @@ -62,19 +62,6 @@ public TaskProcessingResultItemRequestBuilder(string rawUrl, IRequestAdapter req RequestAdapter = requestAdapter; } /// - /// Delete navigation property taskProcessingResults for identityGovernance - /// - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { - var requestInfo = ToDeleteRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> { - {"4XX", ODataError.CreateFromDiscriminatorValue}, - {"5XX", ODataError.CreateFromDiscriminatorValue}, - }; - await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken); - } - /// /// The associated individual task execution. /// /// Cancellation token to use when cancelling requests @@ -88,39 +75,6 @@ public async Task GetAsync(Action(requestInfo, TaskProcessingResult.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Update the navigation property taskProcessingResults in identityGovernance - /// - /// The request body - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - public async Task PatchAsync(TaskProcessingResult body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPatchRequestInformation(body, requestConfiguration); - var errorMapping = new Dictionary> { - {"4XX", ODataError.CreateFromDiscriminatorValue}, - {"5XX", ODataError.CreateFromDiscriminatorValue}, - }; - return await RequestAdapter.SendAsync(requestInfo, TaskProcessingResult.CreateFromDiscriminatorValue, errorMapping, cancellationToken); - } - /// - /// Delete navigation property taskProcessingResults for identityGovernance - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { - var requestInfo = new RequestInformation { - HttpMethod = Method.DELETE, - UrlTemplate = UrlTemplate, - PathParameters = PathParameters, - }; - if (requestConfiguration != null) { - var requestConfig = new TaskProcessingResultItemRequestBuilderDeleteRequestConfiguration(); - requestConfiguration.Invoke(requestConfig); - requestInfo.AddRequestOptions(requestConfig.Options); - requestInfo.AddHeaders(requestConfig.Headers); - } - return requestInfo; - } - /// /// The associated individual task execution. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -141,44 +95,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the navigation property taskProcessingResults in identityGovernance - /// - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. - public RequestInformation ToPatchRequestInformation(TaskProcessingResult body, Action requestConfiguration = default) { - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation { - HttpMethod = Method.PATCH, - UrlTemplate = UrlTemplate, - PathParameters = PathParameters, - }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - if (requestConfiguration != null) { - var requestConfig = new TaskProcessingResultItemRequestBuilderPatchRequestConfiguration(); - requestConfiguration.Invoke(requestConfig); - requestInfo.AddRequestOptions(requestConfig.Options); - requestInfo.AddHeaders(requestConfig.Headers); - } - return requestInfo; - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - public class TaskProcessingResultItemRequestBuilderDeleteRequestConfiguration { - /// Request headers - public RequestHeaders Headers { get; set; } - /// Request options - public IList Options { get; set; } - /// - /// Instantiates a new TaskProcessingResultItemRequestBuilderDeleteRequestConfiguration and sets the default values. - /// - public TaskProcessingResultItemRequestBuilderDeleteRequestConfiguration() { - Options = new List(); - Headers = new RequestHeaders(); - } - } - /// /// The associated individual task execution. /// public class TaskProcessingResultItemRequestBuilderGetQueryParameters { @@ -207,21 +123,5 @@ public TaskProcessingResultItemRequestBuilderGetRequestConfiguration() { Headers = new RequestHeaders(); } } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - public class TaskProcessingResultItemRequestBuilderPatchRequestConfiguration { - /// Request headers - public RequestHeaders Headers { get; set; } - /// Request options - public IList Options { get; set; } - /// - /// Instantiates a new TaskProcessingResultItemRequestBuilderPatchRequestConfiguration and sets the default values. - /// - public TaskProcessingResultItemRequestBuilderPatchRequestConfiguration() { - Options = new List(); - Headers = new RequestHeaders(); - } - } } } diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs index 4cd3e7f7879..4355b9f27ff 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs @@ -73,21 +73,6 @@ public async Task GetAsync(Action(requestInfo, TaskProcessingResultCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Create new navigation property to taskProcessingResults for identityGovernance - /// - /// The request body - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - public async Task PostAsync(TaskProcessingResult body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - var errorMapping = new Dictionary> { - {"4XX", ODataError.CreateFromDiscriminatorValue}, - {"5XX", ODataError.CreateFromDiscriminatorValue}, - }; - return await RequestAdapter.SendAsync(requestInfo, TaskProcessingResult.CreateFromDiscriminatorValue, errorMapping, cancellationToken); - } - /// /// Get the taskProcessingResult resources for a userProcessingResult from a run. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -108,28 +93,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Create new navigation property to taskProcessingResults for identityGovernance - /// - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. - public RequestInformation ToPostRequestInformation(TaskProcessingResult body, Action requestConfiguration = default) { - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation { - HttpMethod = Method.POST, - UrlTemplate = UrlTemplate, - PathParameters = PathParameters, - }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - if (requestConfiguration != null) { - var requestConfig = new TaskProcessingResultsRequestBuilderPostRequestConfiguration(); - requestConfiguration.Invoke(requestConfig); - requestInfo.AddRequestOptions(requestConfig.Options); - requestInfo.AddHeaders(requestConfig.Headers); - } - return requestInfo; - } - /// /// Get the taskProcessingResult resources for a userProcessingResult from a run. /// public class TaskProcessingResultsRequestBuilderGetQueryParameters { @@ -176,21 +139,5 @@ public TaskProcessingResultsRequestBuilderGetRequestConfiguration() { Headers = new RequestHeaders(); } } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - public class TaskProcessingResultsRequestBuilderPostRequestConfiguration { - /// Request headers - public RequestHeaders Headers { get; set; } - /// Request options - public IList Options { get; set; } - /// - /// Instantiates a new taskProcessingResultsRequestBuilderPostRequestConfiguration and sets the default values. - /// - public TaskProcessingResultsRequestBuilderPostRequestConfiguration() { - Options = new List(); - Headers = new RequestHeaders(); - } - } } } diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/UserProcessingResultItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/UserProcessingResultItemRequestBuilder.cs index 0e58f60e22f..5d40d5e7c46 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/UserProcessingResultItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/UserProcessingResultItemRequestBuilder.cs @@ -57,19 +57,6 @@ public UserProcessingResultItemRequestBuilder(string rawUrl, IRequestAdapter req RequestAdapter = requestAdapter; } /// - /// Delete navigation property userProcessingResults for identityGovernance - /// - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { - var requestInfo = ToDeleteRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> { - {"4XX", ODataError.CreateFromDiscriminatorValue}, - {"5XX", ODataError.CreateFromDiscriminatorValue}, - }; - await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken); - } - /// /// Get userProcessingResults from identityGovernance /// /// Cancellation token to use when cancelling requests @@ -83,39 +70,6 @@ public async Task GetAsync(Action(requestInfo, UserProcessingResult.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Update the navigation property userProcessingResults in identityGovernance - /// - /// The request body - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - public async Task PatchAsync(UserProcessingResult body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPatchRequestInformation(body, requestConfiguration); - var errorMapping = new Dictionary> { - {"4XX", ODataError.CreateFromDiscriminatorValue}, - {"5XX", ODataError.CreateFromDiscriminatorValue}, - }; - return await RequestAdapter.SendAsync(requestInfo, UserProcessingResult.CreateFromDiscriminatorValue, errorMapping, cancellationToken); - } - /// - /// Delete navigation property userProcessingResults for identityGovernance - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { - var requestInfo = new RequestInformation { - HttpMethod = Method.DELETE, - UrlTemplate = UrlTemplate, - PathParameters = PathParameters, - }; - if (requestConfiguration != null) { - var requestConfig = new UserProcessingResultItemRequestBuilderDeleteRequestConfiguration(); - requestConfiguration.Invoke(requestConfig); - requestInfo.AddRequestOptions(requestConfig.Options); - requestInfo.AddHeaders(requestConfig.Headers); - } - return requestInfo; - } - /// /// Get userProcessingResults from identityGovernance /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -136,44 +90,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the navigation property userProcessingResults in identityGovernance - /// - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. - public RequestInformation ToPatchRequestInformation(UserProcessingResult body, Action requestConfiguration = default) { - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation { - HttpMethod = Method.PATCH, - UrlTemplate = UrlTemplate, - PathParameters = PathParameters, - }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - if (requestConfiguration != null) { - var requestConfig = new UserProcessingResultItemRequestBuilderPatchRequestConfiguration(); - requestConfiguration.Invoke(requestConfig); - requestInfo.AddRequestOptions(requestConfig.Options); - requestInfo.AddHeaders(requestConfig.Headers); - } - return requestInfo; - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - public class UserProcessingResultItemRequestBuilderDeleteRequestConfiguration { - /// Request headers - public RequestHeaders Headers { get; set; } - /// Request options - public IList Options { get; set; } - /// - /// Instantiates a new UserProcessingResultItemRequestBuilderDeleteRequestConfiguration and sets the default values. - /// - public UserProcessingResultItemRequestBuilderDeleteRequestConfiguration() { - Options = new List(); - Headers = new RequestHeaders(); - } - } - /// /// Get userProcessingResults from identityGovernance /// public class UserProcessingResultItemRequestBuilderGetQueryParameters { @@ -202,21 +118,5 @@ public UserProcessingResultItemRequestBuilderGetRequestConfiguration() { Headers = new RequestHeaders(); } } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - public class UserProcessingResultItemRequestBuilderPatchRequestConfiguration { - /// Request headers - public RequestHeaders Headers { get; set; } - /// Request options - public IList Options { get; set; } - /// - /// Instantiates a new UserProcessingResultItemRequestBuilderPatchRequestConfiguration and sets the default values. - /// - public UserProcessingResultItemRequestBuilderPatchRequestConfiguration() { - Options = new List(); - Headers = new RequestHeaders(); - } - } } } diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/UserProcessingResultsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/UserProcessingResultsRequestBuilder.cs index 7d5d36156f5..6cde85f8614 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/UserProcessingResultsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/UserProcessingResultsRequestBuilder.cs @@ -74,21 +74,6 @@ public async Task GetAsync(Action(requestInfo, UserProcessingResultCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Create new navigation property to userProcessingResults for identityGovernance - /// - /// The request body - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - public async Task PostAsync(UserProcessingResult body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - var errorMapping = new Dictionary> { - {"4XX", ODataError.CreateFromDiscriminatorValue}, - {"5XX", ODataError.CreateFromDiscriminatorValue}, - }; - return await RequestAdapter.SendAsync(requestInfo, UserProcessingResult.CreateFromDiscriminatorValue, errorMapping, cancellationToken); - } - /// /// Provides operations to call the summary method. /// /// Usage: endDateTime={endDateTime} @@ -119,28 +104,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Create new navigation property to userProcessingResults for identityGovernance - /// - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. - public RequestInformation ToPostRequestInformation(UserProcessingResult body, Action requestConfiguration = default) { - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation { - HttpMethod = Method.POST, - UrlTemplate = UrlTemplate, - PathParameters = PathParameters, - }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - if (requestConfiguration != null) { - var requestConfig = new UserProcessingResultsRequestBuilderPostRequestConfiguration(); - requestConfiguration.Invoke(requestConfig); - requestInfo.AddRequestOptions(requestConfig.Options); - requestInfo.AddHeaders(requestConfig.Headers); - } - return requestInfo; - } - /// /// Get the **userProcessingResult** resources for a workflow. /// public class UserProcessingResultsRequestBuilderGetQueryParameters { @@ -187,21 +150,5 @@ public UserProcessingResultsRequestBuilderGetRequestConfiguration() { Headers = new RequestHeaders(); } } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - public class UserProcessingResultsRequestBuilderPostRequestConfiguration { - /// Request headers - public RequestHeaders Headers { get; set; } - /// Request options - public IList Options { get; set; } - /// - /// Instantiates a new userProcessingResultsRequestBuilderPostRequestConfiguration and sets the default values. - /// - public UserProcessingResultsRequestBuilderPostRequestConfiguration() { - Options = new List(); - Headers = new RequestHeaders(); - } - } } } diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/WorkflowVersionVersionNumberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/WorkflowVersionVersionNumberItemRequestBuilder.cs index 51f86d8203c..dbad5b548ad 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/WorkflowVersionVersionNumberItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/WorkflowVersionVersionNumberItemRequestBuilder.cs @@ -47,19 +47,6 @@ public WorkflowVersionVersionNumberItemRequestBuilder(string rawUrl, IRequestAda RequestAdapter = requestAdapter; } /// - /// Delete navigation property versions for identityGovernance - /// - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { - var requestInfo = ToDeleteRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> { - {"4XX", ODataError.CreateFromDiscriminatorValue}, - {"5XX", ODataError.CreateFromDiscriminatorValue}, - }; - await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken); - } - /// /// The workflow versions that are available. /// /// Cancellation token to use when cancelling requests @@ -73,39 +60,6 @@ public async Task GetAsync(Action(requestInfo, WorkflowVersion.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Update the navigation property versions in identityGovernance - /// - /// The request body - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - public async Task PatchAsync(WorkflowVersion body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPatchRequestInformation(body, requestConfiguration); - var errorMapping = new Dictionary> { - {"4XX", ODataError.CreateFromDiscriminatorValue}, - {"5XX", ODataError.CreateFromDiscriminatorValue}, - }; - return await RequestAdapter.SendAsync(requestInfo, WorkflowVersion.CreateFromDiscriminatorValue, errorMapping, cancellationToken); - } - /// - /// Delete navigation property versions for identityGovernance - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { - var requestInfo = new RequestInformation { - HttpMethod = Method.DELETE, - UrlTemplate = UrlTemplate, - PathParameters = PathParameters, - }; - if (requestConfiguration != null) { - var requestConfig = new WorkflowVersionVersionNumberItemRequestBuilderDeleteRequestConfiguration(); - requestConfiguration.Invoke(requestConfig); - requestInfo.AddRequestOptions(requestConfig.Options); - requestInfo.AddHeaders(requestConfig.Headers); - } - return requestInfo; - } - /// /// The workflow versions that are available. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -126,44 +80,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the navigation property versions in identityGovernance - /// - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. - public RequestInformation ToPatchRequestInformation(WorkflowVersion body, Action requestConfiguration = default) { - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation { - HttpMethod = Method.PATCH, - UrlTemplate = UrlTemplate, - PathParameters = PathParameters, - }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - if (requestConfiguration != null) { - var requestConfig = new WorkflowVersionVersionNumberItemRequestBuilderPatchRequestConfiguration(); - requestConfiguration.Invoke(requestConfig); - requestInfo.AddRequestOptions(requestConfig.Options); - requestInfo.AddHeaders(requestConfig.Headers); - } - return requestInfo; - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - public class WorkflowVersionVersionNumberItemRequestBuilderDeleteRequestConfiguration { - /// Request headers - public RequestHeaders Headers { get; set; } - /// Request options - public IList Options { get; set; } - /// - /// Instantiates a new WorkflowVersionVersionNumberItemRequestBuilderDeleteRequestConfiguration and sets the default values. - /// - public WorkflowVersionVersionNumberItemRequestBuilderDeleteRequestConfiguration() { - Options = new List(); - Headers = new RequestHeaders(); - } - } - /// /// The workflow versions that are available. /// public class WorkflowVersionVersionNumberItemRequestBuilderGetQueryParameters { @@ -192,21 +108,5 @@ public WorkflowVersionVersionNumberItemRequestBuilderGetRequestConfiguration() { Headers = new RequestHeaders(); } } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - public class WorkflowVersionVersionNumberItemRequestBuilderPatchRequestConfiguration { - /// Request headers - public RequestHeaders Headers { get; set; } - /// Request options - public IList Options { get; set; } - /// - /// Instantiates a new WorkflowVersionVersionNumberItemRequestBuilderPatchRequestConfiguration and sets the default values. - /// - public WorkflowVersionVersionNumberItemRequestBuilderPatchRequestConfiguration() { - Options = new List(); - Headers = new RequestHeaders(); - } - } } } diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/VersionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/VersionsRequestBuilder.cs index 98185bf2c0f..a80580cbe73 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/VersionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/VersionsRequestBuilder.cs @@ -73,21 +73,6 @@ public async Task GetAsync(Action(requestInfo, WorkflowVersionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Create new navigation property to versions for identityGovernance - /// - /// The request body - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - public async Task PostAsync(WorkflowVersion body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - var errorMapping = new Dictionary> { - {"4XX", ODataError.CreateFromDiscriminatorValue}, - {"5XX", ODataError.CreateFromDiscriminatorValue}, - }; - return await RequestAdapter.SendAsync(requestInfo, WorkflowVersion.CreateFromDiscriminatorValue, errorMapping, cancellationToken); - } - /// /// Get a list of the workflowVersion objects and their properties. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -108,28 +93,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Create new navigation property to versions for identityGovernance - /// - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. - public RequestInformation ToPostRequestInformation(WorkflowVersion body, Action requestConfiguration = default) { - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation { - HttpMethod = Method.POST, - UrlTemplate = UrlTemplate, - PathParameters = PathParameters, - }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - if (requestConfiguration != null) { - var requestConfig = new VersionsRequestBuilderPostRequestConfiguration(); - requestConfiguration.Invoke(requestConfig); - requestInfo.AddRequestOptions(requestConfig.Options); - requestInfo.AddHeaders(requestConfig.Headers); - } - return requestInfo; - } - /// /// Get a list of the workflowVersion objects and their properties. /// public class VersionsRequestBuilderGetQueryParameters { @@ -176,21 +139,5 @@ public VersionsRequestBuilderGetRequestConfiguration() { Headers = new RequestHeaders(); } } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - public class VersionsRequestBuilderPostRequestConfiguration { - /// Request headers - public RequestHeaders Headers { get; set; } - /// Request options - public IList Options { get; set; } - /// - /// Instantiates a new versionsRequestBuilderPostRequestConfiguration and sets the default values. - /// - public VersionsRequestBuilderPostRequestConfiguration() { - Options = new List(); - Headers = new RequestHeaders(); - } - } } } diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/WorkflowItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/WorkflowItemRequestBuilder.cs index 0723b4f9de6..e21642a9177 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/WorkflowItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/WorkflowItemRequestBuilder.cs @@ -113,21 +113,6 @@ public async Task GetAsync(Action(requestInfo, Workflow.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Update the navigation property workflows in identityGovernance - /// - /// The request body - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - public async Task PatchAsync(Workflow body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPatchRequestInformation(body, requestConfiguration); - var errorMapping = new Dictionary> { - {"4XX", ODataError.CreateFromDiscriminatorValue}, - {"5XX", ODataError.CreateFromDiscriminatorValue}, - }; - return await RequestAdapter.SendAsync(requestInfo, Workflow.CreateFromDiscriminatorValue, errorMapping, cancellationToken); - } - /// /// Delete navigation property workflows for identityGovernance /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -166,28 +151,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the navigation property workflows in identityGovernance - /// - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. - public RequestInformation ToPatchRequestInformation(Workflow body, Action requestConfiguration = default) { - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation { - HttpMethod = Method.PATCH, - UrlTemplate = UrlTemplate, - PathParameters = PathParameters, - }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - if (requestConfiguration != null) { - var requestConfig = new WorkflowItemRequestBuilderPatchRequestConfiguration(); - requestConfiguration.Invoke(requestConfig); - requestInfo.AddRequestOptions(requestConfig.Options); - requestInfo.AddHeaders(requestConfig.Headers); - } - return requestInfo; - } - /// /// Configuration for the request such as headers, query parameters, and middleware options. /// public class WorkflowItemRequestBuilderDeleteRequestConfiguration { @@ -232,21 +195,5 @@ public WorkflowItemRequestBuilderGetRequestConfiguration() { Headers = new RequestHeaders(); } } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - public class WorkflowItemRequestBuilderPatchRequestConfiguration { - /// Request headers - public RequestHeaders Headers { get; set; } - /// Request options - public IList Options { get; set; } - /// - /// Instantiates a new WorkflowItemRequestBuilderPatchRequestConfiguration and sets the default values. - /// - public WorkflowItemRequestBuilderPatchRequestConfiguration() { - Options = new List(); - Headers = new RequestHeaders(); - } - } } } diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/WorkflowsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/WorkflowsRequestBuilder.cs index 128ae899dab..9636e325d77 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/WorkflowsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/WorkflowsRequestBuilder.cs @@ -73,21 +73,6 @@ public async Task GetAsync(Action(requestInfo, WorkflowCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Create new navigation property to workflows for identityGovernance - /// - /// The request body - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - public async Task PostAsync(Workflow body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - var errorMapping = new Dictionary> { - {"4XX", ODataError.CreateFromDiscriminatorValue}, - {"5XX", ODataError.CreateFromDiscriminatorValue}, - }; - return await RequestAdapter.SendAsync(requestInfo, Workflow.CreateFromDiscriminatorValue, errorMapping, cancellationToken); - } - /// /// Get a list of the deleted workflow objects and their properties. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -108,28 +93,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Create new navigation property to workflows for identityGovernance - /// - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. - public RequestInformation ToPostRequestInformation(Workflow body, Action requestConfiguration = default) { - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation { - HttpMethod = Method.POST, - UrlTemplate = UrlTemplate, - PathParameters = PathParameters, - }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - if (requestConfiguration != null) { - var requestConfig = new WorkflowsRequestBuilderPostRequestConfiguration(); - requestConfiguration.Invoke(requestConfig); - requestInfo.AddRequestOptions(requestConfig.Options); - requestInfo.AddHeaders(requestConfig.Headers); - } - return requestInfo; - } - /// /// Get a list of the deleted workflow objects and their properties. /// public class WorkflowsRequestBuilderGetQueryParameters { @@ -176,21 +139,5 @@ public WorkflowsRequestBuilderGetRequestConfiguration() { Headers = new RequestHeaders(); } } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - public class WorkflowsRequestBuilderPostRequestConfiguration { - /// Request headers - public RequestHeaders Headers { get; set; } - /// Request options - public IList Options { get; set; } - /// - /// Instantiates a new workflowsRequestBuilderPostRequestConfiguration and sets the default values. - /// - public WorkflowsRequestBuilderPostRequestConfiguration() { - Options = new List(); - Headers = new RequestHeaders(); - } - } } } diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Settings/SettingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Settings/SettingsRequestBuilder.cs index a01c1ce84eb..8e3f66451dc 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Settings/SettingsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Settings/SettingsRequestBuilder.cs @@ -47,19 +47,6 @@ public SettingsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { RequestAdapter = requestAdapter; } /// - /// Delete navigation property settings for identityGovernance - /// - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { - var requestInfo = ToDeleteRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> { - {"4XX", ODataError.CreateFromDiscriminatorValue}, - {"5XX", ODataError.CreateFromDiscriminatorValue}, - }; - await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken); - } - /// /// Read the properties and relationships of a lifecycleManagementSettings object. /// Find more info here /// @@ -90,24 +77,6 @@ public async Task PatchAsync(LifecycleManagementSet return await RequestAdapter.SendAsync(requestInfo, LifecycleManagementSettings.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Delete navigation property settings for identityGovernance - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { - var requestInfo = new RequestInformation { - HttpMethod = Method.DELETE, - UrlTemplate = UrlTemplate, - PathParameters = PathParameters, - }; - if (requestConfiguration != null) { - var requestConfig = new SettingsRequestBuilderDeleteRequestConfiguration(); - requestConfiguration.Invoke(requestConfig); - requestInfo.AddRequestOptions(requestConfig.Options); - requestInfo.AddHeaders(requestConfig.Headers); - } - return requestInfo; - } - /// /// Read the properties and relationships of a lifecycleManagementSettings object. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,22 +119,6 @@ public RequestInformation ToPatchRequestInformation(LifecycleManagementSettings return requestInfo; } /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - public class SettingsRequestBuilderDeleteRequestConfiguration { - /// Request headers - public RequestHeaders Headers { get; set; } - /// Request options - public IList Options { get; set; } - /// - /// Instantiates a new settingsRequestBuilderDeleteRequestConfiguration and sets the default values. - /// - public SettingsRequestBuilderDeleteRequestConfiguration() { - Options = new List(); - Headers = new RequestHeaders(); - } - } - /// /// Read the properties and relationships of a lifecycleManagementSettings object. /// public class SettingsRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/TaskDefinitions/Item/TaskDefinitionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/TaskDefinitions/Item/TaskDefinitionItemRequestBuilder.cs index 438414658fb..c4af103c06f 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/TaskDefinitions/Item/TaskDefinitionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/TaskDefinitions/Item/TaskDefinitionItemRequestBuilder.cs @@ -47,19 +47,6 @@ public TaskDefinitionItemRequestBuilder(string rawUrl, IRequestAdapter requestAd RequestAdapter = requestAdapter; } /// - /// Delete navigation property taskDefinitions for identityGovernance - /// - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { - var requestInfo = ToDeleteRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> { - {"4XX", ODataError.CreateFromDiscriminatorValue}, - {"5XX", ODataError.CreateFromDiscriminatorValue}, - }; - await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken); - } - /// /// The definition of tasks within the lifecycle workflows instance. /// /// Cancellation token to use when cancelling requests @@ -73,39 +60,6 @@ public async Task DeleteAsync(Action(requestInfo, Microsoft.Graph.Beta.Models.IdentityGovernance.TaskDefinition.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Update the navigation property taskDefinitions in identityGovernance - /// - /// The request body - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - public async Task PatchAsync(Microsoft.Graph.Beta.Models.IdentityGovernance.TaskDefinition body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPatchRequestInformation(body, requestConfiguration); - var errorMapping = new Dictionary> { - {"4XX", ODataError.CreateFromDiscriminatorValue}, - {"5XX", ODataError.CreateFromDiscriminatorValue}, - }; - return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Beta.Models.IdentityGovernance.TaskDefinition.CreateFromDiscriminatorValue, errorMapping, cancellationToken); - } - /// - /// Delete navigation property taskDefinitions for identityGovernance - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { - var requestInfo = new RequestInformation { - HttpMethod = Method.DELETE, - UrlTemplate = UrlTemplate, - PathParameters = PathParameters, - }; - if (requestConfiguration != null) { - var requestConfig = new TaskDefinitionItemRequestBuilderDeleteRequestConfiguration(); - requestConfiguration.Invoke(requestConfig); - requestInfo.AddRequestOptions(requestConfig.Options); - requestInfo.AddHeaders(requestConfig.Headers); - } - return requestInfo; - } - /// /// The definition of tasks within the lifecycle workflows instance. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -126,44 +80,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the navigation property taskDefinitions in identityGovernance - /// - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. - public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Beta.Models.IdentityGovernance.TaskDefinition body, Action requestConfiguration = default) { - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation { - HttpMethod = Method.PATCH, - UrlTemplate = UrlTemplate, - PathParameters = PathParameters, - }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - if (requestConfiguration != null) { - var requestConfig = new TaskDefinitionItemRequestBuilderPatchRequestConfiguration(); - requestConfiguration.Invoke(requestConfig); - requestInfo.AddRequestOptions(requestConfig.Options); - requestInfo.AddHeaders(requestConfig.Headers); - } - return requestInfo; - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - public class TaskDefinitionItemRequestBuilderDeleteRequestConfiguration { - /// Request headers - public RequestHeaders Headers { get; set; } - /// Request options - public IList Options { get; set; } - /// - /// Instantiates a new TaskDefinitionItemRequestBuilderDeleteRequestConfiguration and sets the default values. - /// - public TaskDefinitionItemRequestBuilderDeleteRequestConfiguration() { - Options = new List(); - Headers = new RequestHeaders(); - } - } - /// /// The definition of tasks within the lifecycle workflows instance. /// public class TaskDefinitionItemRequestBuilderGetQueryParameters { @@ -192,21 +108,5 @@ public TaskDefinitionItemRequestBuilderGetRequestConfiguration() { Headers = new RequestHeaders(); } } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - public class TaskDefinitionItemRequestBuilderPatchRequestConfiguration { - /// Request headers - public RequestHeaders Headers { get; set; } - /// Request options - public IList Options { get; set; } - /// - /// Instantiates a new TaskDefinitionItemRequestBuilderPatchRequestConfiguration and sets the default values. - /// - public TaskDefinitionItemRequestBuilderPatchRequestConfiguration() { - Options = new List(); - Headers = new RequestHeaders(); - } - } } } diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/TaskDefinitions/TaskDefinitionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/TaskDefinitions/TaskDefinitionsRequestBuilder.cs index 4b53932e6bb..97bfe734fdb 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/TaskDefinitions/TaskDefinitionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/TaskDefinitions/TaskDefinitionsRequestBuilder.cs @@ -73,21 +73,6 @@ public async Task GetAsync(Action(requestInfo, TaskDefinitionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Create new navigation property to taskDefinitions for identityGovernance - /// - /// The request body - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - public async Task PostAsync(Microsoft.Graph.Beta.Models.IdentityGovernance.TaskDefinition body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - var errorMapping = new Dictionary> { - {"4XX", ODataError.CreateFromDiscriminatorValue}, - {"5XX", ODataError.CreateFromDiscriminatorValue}, - }; - return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Beta.Models.IdentityGovernance.TaskDefinition.CreateFromDiscriminatorValue, errorMapping, cancellationToken); - } - /// /// Get a list of the taskDefinition objects and their properties. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -108,28 +93,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Create new navigation property to taskDefinitions for identityGovernance - /// - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. - public RequestInformation ToPostRequestInformation(Microsoft.Graph.Beta.Models.IdentityGovernance.TaskDefinition body, Action requestConfiguration = default) { - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation { - HttpMethod = Method.POST, - UrlTemplate = UrlTemplate, - PathParameters = PathParameters, - }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - if (requestConfiguration != null) { - var requestConfig = new TaskDefinitionsRequestBuilderPostRequestConfiguration(); - requestConfiguration.Invoke(requestConfig); - requestInfo.AddRequestOptions(requestConfig.Options); - requestInfo.AddHeaders(requestConfig.Headers); - } - return requestInfo; - } - /// /// Get a list of the taskDefinition objects and their properties. /// public class TaskDefinitionsRequestBuilderGetQueryParameters { @@ -176,21 +139,5 @@ public TaskDefinitionsRequestBuilderGetRequestConfiguration() { Headers = new RequestHeaders(); } } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - public class TaskDefinitionsRequestBuilderPostRequestConfiguration { - /// Request headers - public RequestHeaders Headers { get; set; } - /// Request options - public IList Options { get; set; } - /// - /// Instantiates a new taskDefinitionsRequestBuilderPostRequestConfiguration and sets the default values. - /// - public TaskDefinitionsRequestBuilderPostRequestConfiguration() { - Options = new List(); - Headers = new RequestHeaders(); - } - } } } diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskItemRequestBuilder.cs index c22ba39372f..d370a5877f0 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskItemRequestBuilder.cs @@ -52,19 +52,6 @@ public TaskItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { RequestAdapter = requestAdapter; } /// - /// Delete navigation property tasks for identityGovernance - /// - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { - var requestInfo = ToDeleteRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> { - {"4XX", ODataError.CreateFromDiscriminatorValue}, - {"5XX", ODataError.CreateFromDiscriminatorValue}, - }; - await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken); - } - /// /// Represents the configured tasks to execute and their execution sequence within a workflow. This relationship is expanded by default. /// /// Cancellation token to use when cancelling requests @@ -78,39 +65,6 @@ public async Task GetAsync(Action(requestInfo, TaskObject.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Update the navigation property tasks in identityGovernance - /// - /// The request body - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - public async Task PatchAsync(TaskObject body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPatchRequestInformation(body, requestConfiguration); - var errorMapping = new Dictionary> { - {"4XX", ODataError.CreateFromDiscriminatorValue}, - {"5XX", ODataError.CreateFromDiscriminatorValue}, - }; - return await RequestAdapter.SendAsync(requestInfo, TaskObject.CreateFromDiscriminatorValue, errorMapping, cancellationToken); - } - /// - /// Delete navigation property tasks for identityGovernance - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { - var requestInfo = new RequestInformation { - HttpMethod = Method.DELETE, - UrlTemplate = UrlTemplate, - PathParameters = PathParameters, - }; - if (requestConfiguration != null) { - var requestConfig = new TaskItemRequestBuilderDeleteRequestConfiguration(); - requestConfiguration.Invoke(requestConfig); - requestInfo.AddRequestOptions(requestConfig.Options); - requestInfo.AddHeaders(requestConfig.Headers); - } - return requestInfo; - } - /// /// Represents the configured tasks to execute and their execution sequence within a workflow. This relationship is expanded by default. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -131,44 +85,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the navigation property tasks in identityGovernance - /// - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. - public RequestInformation ToPatchRequestInformation(TaskObject body, Action requestConfiguration = default) { - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation { - HttpMethod = Method.PATCH, - UrlTemplate = UrlTemplate, - PathParameters = PathParameters, - }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - if (requestConfiguration != null) { - var requestConfig = new TaskItemRequestBuilderPatchRequestConfiguration(); - requestConfiguration.Invoke(requestConfig); - requestInfo.AddRequestOptions(requestConfig.Options); - requestInfo.AddHeaders(requestConfig.Headers); - } - return requestInfo; - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - public class TaskItemRequestBuilderDeleteRequestConfiguration { - /// Request headers - public RequestHeaders Headers { get; set; } - /// Request options - public IList Options { get; set; } - /// - /// Instantiates a new TaskItemRequestBuilderDeleteRequestConfiguration and sets the default values. - /// - public TaskItemRequestBuilderDeleteRequestConfiguration() { - Options = new List(); - Headers = new RequestHeaders(); - } - } - /// /// Represents the configured tasks to execute and their execution sequence within a workflow. This relationship is expanded by default. /// public class TaskItemRequestBuilderGetQueryParameters { @@ -197,21 +113,5 @@ public TaskItemRequestBuilderGetRequestConfiguration() { Headers = new RequestHeaders(); } } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - public class TaskItemRequestBuilderPatchRequestConfiguration { - /// Request headers - public RequestHeaders Headers { get; set; } - /// Request options - public IList Options { get; set; } - /// - /// Instantiates a new TaskItemRequestBuilderPatchRequestConfiguration and sets the default values. - /// - public TaskItemRequestBuilderPatchRequestConfiguration() { - Options = new List(); - Headers = new RequestHeaders(); - } - } } } diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.cs index 91fa67bf89e..16212a7e5c0 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.cs @@ -62,19 +62,6 @@ public TaskProcessingResultItemRequestBuilder(string rawUrl, IRequestAdapter req RequestAdapter = requestAdapter; } /// - /// Delete navigation property taskProcessingResults for identityGovernance - /// - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { - var requestInfo = ToDeleteRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> { - {"4XX", ODataError.CreateFromDiscriminatorValue}, - {"5XX", ODataError.CreateFromDiscriminatorValue}, - }; - await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken); - } - /// /// The result of processing the task. /// /// Cancellation token to use when cancelling requests @@ -88,39 +75,6 @@ public async Task GetAsync(Action(requestInfo, TaskProcessingResult.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Update the navigation property taskProcessingResults in identityGovernance - /// - /// The request body - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - public async Task PatchAsync(TaskProcessingResult body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPatchRequestInformation(body, requestConfiguration); - var errorMapping = new Dictionary> { - {"4XX", ODataError.CreateFromDiscriminatorValue}, - {"5XX", ODataError.CreateFromDiscriminatorValue}, - }; - return await RequestAdapter.SendAsync(requestInfo, TaskProcessingResult.CreateFromDiscriminatorValue, errorMapping, cancellationToken); - } - /// - /// Delete navigation property taskProcessingResults for identityGovernance - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { - var requestInfo = new RequestInformation { - HttpMethod = Method.DELETE, - UrlTemplate = UrlTemplate, - PathParameters = PathParameters, - }; - if (requestConfiguration != null) { - var requestConfig = new TaskProcessingResultItemRequestBuilderDeleteRequestConfiguration(); - requestConfiguration.Invoke(requestConfig); - requestInfo.AddRequestOptions(requestConfig.Options); - requestInfo.AddHeaders(requestConfig.Headers); - } - return requestInfo; - } - /// /// The result of processing the task. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -141,44 +95,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the navigation property taskProcessingResults in identityGovernance - /// - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. - public RequestInformation ToPatchRequestInformation(TaskProcessingResult body, Action requestConfiguration = default) { - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation { - HttpMethod = Method.PATCH, - UrlTemplate = UrlTemplate, - PathParameters = PathParameters, - }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - if (requestConfiguration != null) { - var requestConfig = new TaskProcessingResultItemRequestBuilderPatchRequestConfiguration(); - requestConfiguration.Invoke(requestConfig); - requestInfo.AddRequestOptions(requestConfig.Options); - requestInfo.AddHeaders(requestConfig.Headers); - } - return requestInfo; - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - public class TaskProcessingResultItemRequestBuilderDeleteRequestConfiguration { - /// Request headers - public RequestHeaders Headers { get; set; } - /// Request options - public IList Options { get; set; } - /// - /// Instantiates a new TaskProcessingResultItemRequestBuilderDeleteRequestConfiguration and sets the default values. - /// - public TaskProcessingResultItemRequestBuilderDeleteRequestConfiguration() { - Options = new List(); - Headers = new RequestHeaders(); - } - } - /// /// The result of processing the task. /// public class TaskProcessingResultItemRequestBuilderGetQueryParameters { @@ -207,21 +123,5 @@ public TaskProcessingResultItemRequestBuilderGetRequestConfiguration() { Headers = new RequestHeaders(); } } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - public class TaskProcessingResultItemRequestBuilderPatchRequestConfiguration { - /// Request headers - public RequestHeaders Headers { get; set; } - /// Request options - public IList Options { get; set; } - /// - /// Instantiates a new TaskProcessingResultItemRequestBuilderPatchRequestConfiguration and sets the default values. - /// - public TaskProcessingResultItemRequestBuilderPatchRequestConfiguration() { - Options = new List(); - Headers = new RequestHeaders(); - } - } } } diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs index 530066f4281..1d45d9802b6 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs @@ -72,21 +72,6 @@ public async Task GetAsync(Action(requestInfo, TaskProcessingResultCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Create new navigation property to taskProcessingResults for identityGovernance - /// - /// The request body - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - public async Task PostAsync(TaskProcessingResult body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - var errorMapping = new Dictionary> { - {"4XX", ODataError.CreateFromDiscriminatorValue}, - {"5XX", ODataError.CreateFromDiscriminatorValue}, - }; - return await RequestAdapter.SendAsync(requestInfo, TaskProcessingResult.CreateFromDiscriminatorValue, errorMapping, cancellationToken); - } - /// /// The result of processing the task. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -107,28 +92,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Create new navigation property to taskProcessingResults for identityGovernance - /// - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. - public RequestInformation ToPostRequestInformation(TaskProcessingResult body, Action requestConfiguration = default) { - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation { - HttpMethod = Method.POST, - UrlTemplate = UrlTemplate, - PathParameters = PathParameters, - }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - if (requestConfiguration != null) { - var requestConfig = new TaskProcessingResultsRequestBuilderPostRequestConfiguration(); - requestConfiguration.Invoke(requestConfig); - requestInfo.AddRequestOptions(requestConfig.Options); - requestInfo.AddHeaders(requestConfig.Headers); - } - return requestInfo; - } - /// /// The result of processing the task. /// public class TaskProcessingResultsRequestBuilderGetQueryParameters { @@ -175,21 +138,5 @@ public TaskProcessingResultsRequestBuilderGetRequestConfiguration() { Headers = new RequestHeaders(); } } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - public class TaskProcessingResultsRequestBuilderPostRequestConfiguration { - /// Request headers - public RequestHeaders Headers { get; set; } - /// Request options - public IList Options { get; set; } - /// - /// Instantiates a new taskProcessingResultsRequestBuilderPostRequestConfiguration and sets the default values. - /// - public TaskProcessingResultsRequestBuilderPostRequestConfiguration() { - Options = new List(); - Headers = new RequestHeaders(); - } - } } } diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/TasksRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/TasksRequestBuilder.cs index 399c099afea..54339b74fde 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/TasksRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/TasksRequestBuilder.cs @@ -72,21 +72,6 @@ public async Task GetAsync(Action(requestInfo, TaskCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Create new navigation property to tasks for identityGovernance - /// - /// The request body - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - public async Task PostAsync(TaskObject body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - var errorMapping = new Dictionary> { - {"4XX", ODataError.CreateFromDiscriminatorValue}, - {"5XX", ODataError.CreateFromDiscriminatorValue}, - }; - return await RequestAdapter.SendAsync(requestInfo, TaskObject.CreateFromDiscriminatorValue, errorMapping, cancellationToken); - } - /// /// Represents the configured tasks to execute and their execution sequence within a workflow. This relationship is expanded by default. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -107,28 +92,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Create new navigation property to tasks for identityGovernance - /// - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. - public RequestInformation ToPostRequestInformation(TaskObject body, Action requestConfiguration = default) { - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation { - HttpMethod = Method.POST, - UrlTemplate = UrlTemplate, - PathParameters = PathParameters, - }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - if (requestConfiguration != null) { - var requestConfig = new TasksRequestBuilderPostRequestConfiguration(); - requestConfiguration.Invoke(requestConfig); - requestInfo.AddRequestOptions(requestConfig.Options); - requestInfo.AddHeaders(requestConfig.Headers); - } - return requestInfo; - } - /// /// Represents the configured tasks to execute and their execution sequence within a workflow. This relationship is expanded by default. /// public class TasksRequestBuilderGetQueryParameters { @@ -175,21 +138,5 @@ public TasksRequestBuilderGetRequestConfiguration() { Headers = new RequestHeaders(); } } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - public class TasksRequestBuilderPostRequestConfiguration { - /// Request headers - public RequestHeaders Headers { get; set; } - /// Request options - public IList Options { get; set; } - /// - /// Instantiates a new tasksRequestBuilderPostRequestConfiguration and sets the default values. - /// - public TasksRequestBuilderPostRequestConfiguration() { - Options = new List(); - Headers = new RequestHeaders(); - } - } } } diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/WorkflowTemplateItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/WorkflowTemplateItemRequestBuilder.cs index 5bdc3755065..42dd03af7b2 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/WorkflowTemplateItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/WorkflowTemplateItemRequestBuilder.cs @@ -52,19 +52,6 @@ public WorkflowTemplateItemRequestBuilder(string rawUrl, IRequestAdapter request RequestAdapter = requestAdapter; } /// - /// Delete navigation property workflowTemplates for identityGovernance - /// - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { - var requestInfo = ToDeleteRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> { - {"4XX", ODataError.CreateFromDiscriminatorValue}, - {"5XX", ODataError.CreateFromDiscriminatorValue}, - }; - await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken); - } - /// /// The workflow templates in the lifecycle workflow instance. /// /// Cancellation token to use when cancelling requests @@ -78,39 +65,6 @@ public async Task GetAsync(Action(requestInfo, WorkflowTemplate.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Update the navigation property workflowTemplates in identityGovernance - /// - /// The request body - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - public async Task PatchAsync(WorkflowTemplate body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPatchRequestInformation(body, requestConfiguration); - var errorMapping = new Dictionary> { - {"4XX", ODataError.CreateFromDiscriminatorValue}, - {"5XX", ODataError.CreateFromDiscriminatorValue}, - }; - return await RequestAdapter.SendAsync(requestInfo, WorkflowTemplate.CreateFromDiscriminatorValue, errorMapping, cancellationToken); - } - /// - /// Delete navigation property workflowTemplates for identityGovernance - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { - var requestInfo = new RequestInformation { - HttpMethod = Method.DELETE, - UrlTemplate = UrlTemplate, - PathParameters = PathParameters, - }; - if (requestConfiguration != null) { - var requestConfig = new WorkflowTemplateItemRequestBuilderDeleteRequestConfiguration(); - requestConfiguration.Invoke(requestConfig); - requestInfo.AddRequestOptions(requestConfig.Options); - requestInfo.AddHeaders(requestConfig.Headers); - } - return requestInfo; - } - /// /// The workflow templates in the lifecycle workflow instance. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -131,44 +85,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the navigation property workflowTemplates in identityGovernance - /// - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. - public RequestInformation ToPatchRequestInformation(WorkflowTemplate body, Action requestConfiguration = default) { - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation { - HttpMethod = Method.PATCH, - UrlTemplate = UrlTemplate, - PathParameters = PathParameters, - }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - if (requestConfiguration != null) { - var requestConfig = new WorkflowTemplateItemRequestBuilderPatchRequestConfiguration(); - requestConfiguration.Invoke(requestConfig); - requestInfo.AddRequestOptions(requestConfig.Options); - requestInfo.AddHeaders(requestConfig.Headers); - } - return requestInfo; - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - public class WorkflowTemplateItemRequestBuilderDeleteRequestConfiguration { - /// Request headers - public RequestHeaders Headers { get; set; } - /// Request options - public IList Options { get; set; } - /// - /// Instantiates a new WorkflowTemplateItemRequestBuilderDeleteRequestConfiguration and sets the default values. - /// - public WorkflowTemplateItemRequestBuilderDeleteRequestConfiguration() { - Options = new List(); - Headers = new RequestHeaders(); - } - } - /// /// The workflow templates in the lifecycle workflow instance. /// public class WorkflowTemplateItemRequestBuilderGetQueryParameters { @@ -197,21 +113,5 @@ public WorkflowTemplateItemRequestBuilderGetRequestConfiguration() { Headers = new RequestHeaders(); } } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - public class WorkflowTemplateItemRequestBuilderPatchRequestConfiguration { - /// Request headers - public RequestHeaders Headers { get; set; } - /// Request options - public IList Options { get; set; } - /// - /// Instantiates a new WorkflowTemplateItemRequestBuilderPatchRequestConfiguration and sets the default values. - /// - public WorkflowTemplateItemRequestBuilderPatchRequestConfiguration() { - Options = new List(); - Headers = new RequestHeaders(); - } - } } } diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/WorkflowTemplatesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/WorkflowTemplatesRequestBuilder.cs index e4c6509a8cb..ae941833b06 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/WorkflowTemplatesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/WorkflowTemplatesRequestBuilder.cs @@ -73,21 +73,6 @@ public async Task GetAsync(Action(requestInfo, WorkflowTemplateCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Create new navigation property to workflowTemplates for identityGovernance - /// - /// The request body - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - public async Task PostAsync(WorkflowTemplate body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - var errorMapping = new Dictionary> { - {"4XX", ODataError.CreateFromDiscriminatorValue}, - {"5XX", ODataError.CreateFromDiscriminatorValue}, - }; - return await RequestAdapter.SendAsync(requestInfo, WorkflowTemplate.CreateFromDiscriminatorValue, errorMapping, cancellationToken); - } - /// /// Get a list of the workflowTemplate objects and their properties. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -108,28 +93,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Create new navigation property to workflowTemplates for identityGovernance - /// - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. - public RequestInformation ToPostRequestInformation(WorkflowTemplate body, Action requestConfiguration = default) { - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation { - HttpMethod = Method.POST, - UrlTemplate = UrlTemplate, - PathParameters = PathParameters, - }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - if (requestConfiguration != null) { - var requestConfig = new WorkflowTemplatesRequestBuilderPostRequestConfiguration(); - requestConfiguration.Invoke(requestConfig); - requestInfo.AddRequestOptions(requestConfig.Options); - requestInfo.AddHeaders(requestConfig.Headers); - } - return requestInfo; - } - /// /// Get a list of the workflowTemplate objects and their properties. /// public class WorkflowTemplatesRequestBuilderGetQueryParameters { @@ -176,21 +139,5 @@ public WorkflowTemplatesRequestBuilderGetRequestConfiguration() { Headers = new RequestHeaders(); } } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - public class WorkflowTemplatesRequestBuilderPostRequestConfiguration { - /// Request headers - public RequestHeaders Headers { get; set; } - /// Request options - public IList Options { get; set; } - /// - /// Instantiates a new workflowTemplatesRequestBuilderPostRequestConfiguration and sets the default values. - /// - public WorkflowTemplatesRequestBuilderPostRequestConfiguration() { - Options = new List(); - Headers = new RequestHeaders(); - } - } } } diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/RunItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/RunItemRequestBuilder.cs index 878cffc123f..1c971a7ba42 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/RunItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/RunItemRequestBuilder.cs @@ -57,19 +57,6 @@ public RunItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { RequestAdapter = requestAdapter; } /// - /// Delete navigation property runs for identityGovernance - /// - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { - var requestInfo = ToDeleteRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> { - {"4XX", ODataError.CreateFromDiscriminatorValue}, - {"5XX", ODataError.CreateFromDiscriminatorValue}, - }; - await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken); - } - /// /// Get runs from identityGovernance /// /// Cancellation token to use when cancelling requests @@ -83,39 +70,6 @@ public async Task DeleteAsync(Action(requestInfo, Microsoft.Graph.Beta.Models.IdentityGovernance.Run.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Update the navigation property runs in identityGovernance - /// - /// The request body - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - public async Task PatchAsync(Microsoft.Graph.Beta.Models.IdentityGovernance.Run body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPatchRequestInformation(body, requestConfiguration); - var errorMapping = new Dictionary> { - {"4XX", ODataError.CreateFromDiscriminatorValue}, - {"5XX", ODataError.CreateFromDiscriminatorValue}, - }; - return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Beta.Models.IdentityGovernance.Run.CreateFromDiscriminatorValue, errorMapping, cancellationToken); - } - /// - /// Delete navigation property runs for identityGovernance - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { - var requestInfo = new RequestInformation { - HttpMethod = Method.DELETE, - UrlTemplate = UrlTemplate, - PathParameters = PathParameters, - }; - if (requestConfiguration != null) { - var requestConfig = new RunItemRequestBuilderDeleteRequestConfiguration(); - requestConfiguration.Invoke(requestConfig); - requestInfo.AddRequestOptions(requestConfig.Options); - requestInfo.AddHeaders(requestConfig.Headers); - } - return requestInfo; - } - /// /// Get runs from identityGovernance /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -136,44 +90,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the navigation property runs in identityGovernance - /// - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. - public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Beta.Models.IdentityGovernance.Run body, Action requestConfiguration = default) { - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation { - HttpMethod = Method.PATCH, - UrlTemplate = UrlTemplate, - PathParameters = PathParameters, - }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - if (requestConfiguration != null) { - var requestConfig = new RunItemRequestBuilderPatchRequestConfiguration(); - requestConfiguration.Invoke(requestConfig); - requestInfo.AddRequestOptions(requestConfig.Options); - requestInfo.AddHeaders(requestConfig.Headers); - } - return requestInfo; - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - public class RunItemRequestBuilderDeleteRequestConfiguration { - /// Request headers - public RequestHeaders Headers { get; set; } - /// Request options - public IList Options { get; set; } - /// - /// Instantiates a new RunItemRequestBuilderDeleteRequestConfiguration and sets the default values. - /// - public RunItemRequestBuilderDeleteRequestConfiguration() { - Options = new List(); - Headers = new RequestHeaders(); - } - } - /// /// Get runs from identityGovernance /// public class RunItemRequestBuilderGetQueryParameters { @@ -202,21 +118,5 @@ public RunItemRequestBuilderGetRequestConfiguration() { Headers = new RequestHeaders(); } } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - public class RunItemRequestBuilderPatchRequestConfiguration { - /// Request headers - public RequestHeaders Headers { get; set; } - /// Request options - public IList Options { get; set; } - /// - /// Instantiates a new RunItemRequestBuilderPatchRequestConfiguration and sets the default values. - /// - public RunItemRequestBuilderPatchRequestConfiguration() { - Options = new List(); - Headers = new RequestHeaders(); - } - } } } diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.cs index 9aa3a65e1b0..21293719341 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.cs @@ -62,19 +62,6 @@ public TaskProcessingResultItemRequestBuilder(string rawUrl, IRequestAdapter req RequestAdapter = requestAdapter; } /// - /// Delete navigation property taskProcessingResults for identityGovernance - /// - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { - var requestInfo = ToDeleteRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> { - {"4XX", ODataError.CreateFromDiscriminatorValue}, - {"5XX", ODataError.CreateFromDiscriminatorValue}, - }; - await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken); - } - /// /// The related taskProcessingResults. /// /// Cancellation token to use when cancelling requests @@ -88,39 +75,6 @@ public async Task GetAsync(Action(requestInfo, TaskProcessingResult.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Update the navigation property taskProcessingResults in identityGovernance - /// - /// The request body - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - public async Task PatchAsync(TaskProcessingResult body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPatchRequestInformation(body, requestConfiguration); - var errorMapping = new Dictionary> { - {"4XX", ODataError.CreateFromDiscriminatorValue}, - {"5XX", ODataError.CreateFromDiscriminatorValue}, - }; - return await RequestAdapter.SendAsync(requestInfo, TaskProcessingResult.CreateFromDiscriminatorValue, errorMapping, cancellationToken); - } - /// - /// Delete navigation property taskProcessingResults for identityGovernance - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { - var requestInfo = new RequestInformation { - HttpMethod = Method.DELETE, - UrlTemplate = UrlTemplate, - PathParameters = PathParameters, - }; - if (requestConfiguration != null) { - var requestConfig = new TaskProcessingResultItemRequestBuilderDeleteRequestConfiguration(); - requestConfiguration.Invoke(requestConfig); - requestInfo.AddRequestOptions(requestConfig.Options); - requestInfo.AddHeaders(requestConfig.Headers); - } - return requestInfo; - } - /// /// The related taskProcessingResults. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -141,44 +95,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the navigation property taskProcessingResults in identityGovernance - /// - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. - public RequestInformation ToPatchRequestInformation(TaskProcessingResult body, Action requestConfiguration = default) { - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation { - HttpMethod = Method.PATCH, - UrlTemplate = UrlTemplate, - PathParameters = PathParameters, - }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - if (requestConfiguration != null) { - var requestConfig = new TaskProcessingResultItemRequestBuilderPatchRequestConfiguration(); - requestConfiguration.Invoke(requestConfig); - requestInfo.AddRequestOptions(requestConfig.Options); - requestInfo.AddHeaders(requestConfig.Headers); - } - return requestInfo; - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - public class TaskProcessingResultItemRequestBuilderDeleteRequestConfiguration { - /// Request headers - public RequestHeaders Headers { get; set; } - /// Request options - public IList Options { get; set; } - /// - /// Instantiates a new TaskProcessingResultItemRequestBuilderDeleteRequestConfiguration and sets the default values. - /// - public TaskProcessingResultItemRequestBuilderDeleteRequestConfiguration() { - Options = new List(); - Headers = new RequestHeaders(); - } - } - /// /// The related taskProcessingResults. /// public class TaskProcessingResultItemRequestBuilderGetQueryParameters { @@ -207,21 +123,5 @@ public TaskProcessingResultItemRequestBuilderGetRequestConfiguration() { Headers = new RequestHeaders(); } } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - public class TaskProcessingResultItemRequestBuilderPatchRequestConfiguration { - /// Request headers - public RequestHeaders Headers { get; set; } - /// Request options - public IList Options { get; set; } - /// - /// Instantiates a new TaskProcessingResultItemRequestBuilderPatchRequestConfiguration and sets the default values. - /// - public TaskProcessingResultItemRequestBuilderPatchRequestConfiguration() { - Options = new List(); - Headers = new RequestHeaders(); - } - } } } diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs index 89011a333d4..338bd596e32 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs @@ -72,21 +72,6 @@ public async Task GetAsync(Action(requestInfo, TaskProcessingResultCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Create new navigation property to taskProcessingResults for identityGovernance - /// - /// The request body - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - public async Task PostAsync(TaskProcessingResult body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - var errorMapping = new Dictionary> { - {"4XX", ODataError.CreateFromDiscriminatorValue}, - {"5XX", ODataError.CreateFromDiscriminatorValue}, - }; - return await RequestAdapter.SendAsync(requestInfo, TaskProcessingResult.CreateFromDiscriminatorValue, errorMapping, cancellationToken); - } - /// /// The related taskProcessingResults. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -107,28 +92,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Create new navigation property to taskProcessingResults for identityGovernance - /// - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. - public RequestInformation ToPostRequestInformation(TaskProcessingResult body, Action requestConfiguration = default) { - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation { - HttpMethod = Method.POST, - UrlTemplate = UrlTemplate, - PathParameters = PathParameters, - }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - if (requestConfiguration != null) { - var requestConfig = new TaskProcessingResultsRequestBuilderPostRequestConfiguration(); - requestConfiguration.Invoke(requestConfig); - requestInfo.AddRequestOptions(requestConfig.Options); - requestInfo.AddHeaders(requestConfig.Headers); - } - return requestInfo; - } - /// /// The related taskProcessingResults. /// public class TaskProcessingResultsRequestBuilderGetQueryParameters { @@ -175,21 +138,5 @@ public TaskProcessingResultsRequestBuilderGetRequestConfiguration() { Headers = new RequestHeaders(); } } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - public class TaskProcessingResultsRequestBuilderPostRequestConfiguration { - /// Request headers - public RequestHeaders Headers { get; set; } - /// Request options - public IList Options { get; set; } - /// - /// Instantiates a new taskProcessingResultsRequestBuilderPostRequestConfiguration and sets the default values. - /// - public TaskProcessingResultsRequestBuilderPostRequestConfiguration() { - Options = new List(); - Headers = new RequestHeaders(); - } - } } } diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.cs index a4a06686b1f..c0f1924ed93 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.cs @@ -62,19 +62,6 @@ public TaskProcessingResultItemRequestBuilder(string rawUrl, IRequestAdapter req RequestAdapter = requestAdapter; } /// - /// Delete navigation property taskProcessingResults for identityGovernance - /// - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { - var requestInfo = ToDeleteRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> { - {"4XX", ODataError.CreateFromDiscriminatorValue}, - {"5XX", ODataError.CreateFromDiscriminatorValue}, - }; - await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken); - } - /// /// The associated individual task execution. /// /// Cancellation token to use when cancelling requests @@ -88,39 +75,6 @@ public async Task GetAsync(Action(requestInfo, TaskProcessingResult.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Update the navigation property taskProcessingResults in identityGovernance - /// - /// The request body - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - public async Task PatchAsync(TaskProcessingResult body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPatchRequestInformation(body, requestConfiguration); - var errorMapping = new Dictionary> { - {"4XX", ODataError.CreateFromDiscriminatorValue}, - {"5XX", ODataError.CreateFromDiscriminatorValue}, - }; - return await RequestAdapter.SendAsync(requestInfo, TaskProcessingResult.CreateFromDiscriminatorValue, errorMapping, cancellationToken); - } - /// - /// Delete navigation property taskProcessingResults for identityGovernance - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { - var requestInfo = new RequestInformation { - HttpMethod = Method.DELETE, - UrlTemplate = UrlTemplate, - PathParameters = PathParameters, - }; - if (requestConfiguration != null) { - var requestConfig = new TaskProcessingResultItemRequestBuilderDeleteRequestConfiguration(); - requestConfiguration.Invoke(requestConfig); - requestInfo.AddRequestOptions(requestConfig.Options); - requestInfo.AddHeaders(requestConfig.Headers); - } - return requestInfo; - } - /// /// The associated individual task execution. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -141,44 +95,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the navigation property taskProcessingResults in identityGovernance - /// - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. - public RequestInformation ToPatchRequestInformation(TaskProcessingResult body, Action requestConfiguration = default) { - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation { - HttpMethod = Method.PATCH, - UrlTemplate = UrlTemplate, - PathParameters = PathParameters, - }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - if (requestConfiguration != null) { - var requestConfig = new TaskProcessingResultItemRequestBuilderPatchRequestConfiguration(); - requestConfiguration.Invoke(requestConfig); - requestInfo.AddRequestOptions(requestConfig.Options); - requestInfo.AddHeaders(requestConfig.Headers); - } - return requestInfo; - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - public class TaskProcessingResultItemRequestBuilderDeleteRequestConfiguration { - /// Request headers - public RequestHeaders Headers { get; set; } - /// Request options - public IList Options { get; set; } - /// - /// Instantiates a new TaskProcessingResultItemRequestBuilderDeleteRequestConfiguration and sets the default values. - /// - public TaskProcessingResultItemRequestBuilderDeleteRequestConfiguration() { - Options = new List(); - Headers = new RequestHeaders(); - } - } - /// /// The associated individual task execution. /// public class TaskProcessingResultItemRequestBuilderGetQueryParameters { @@ -207,21 +123,5 @@ public TaskProcessingResultItemRequestBuilderGetRequestConfiguration() { Headers = new RequestHeaders(); } } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - public class TaskProcessingResultItemRequestBuilderPatchRequestConfiguration { - /// Request headers - public RequestHeaders Headers { get; set; } - /// Request options - public IList Options { get; set; } - /// - /// Instantiates a new TaskProcessingResultItemRequestBuilderPatchRequestConfiguration and sets the default values. - /// - public TaskProcessingResultItemRequestBuilderPatchRequestConfiguration() { - Options = new List(); - Headers = new RequestHeaders(); - } - } } } diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs index fec17817322..815e98f6786 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs @@ -73,21 +73,6 @@ public async Task GetAsync(Action(requestInfo, TaskProcessingResultCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Create new navigation property to taskProcessingResults for identityGovernance - /// - /// The request body - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - public async Task PostAsync(TaskProcessingResult body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - var errorMapping = new Dictionary> { - {"4XX", ODataError.CreateFromDiscriminatorValue}, - {"5XX", ODataError.CreateFromDiscriminatorValue}, - }; - return await RequestAdapter.SendAsync(requestInfo, TaskProcessingResult.CreateFromDiscriminatorValue, errorMapping, cancellationToken); - } - /// /// Get the taskProcessingResult resources for a userProcessingResult from a run. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -108,28 +93,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Create new navigation property to taskProcessingResults for identityGovernance - /// - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. - public RequestInformation ToPostRequestInformation(TaskProcessingResult body, Action requestConfiguration = default) { - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation { - HttpMethod = Method.POST, - UrlTemplate = UrlTemplate, - PathParameters = PathParameters, - }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - if (requestConfiguration != null) { - var requestConfig = new TaskProcessingResultsRequestBuilderPostRequestConfiguration(); - requestConfiguration.Invoke(requestConfig); - requestInfo.AddRequestOptions(requestConfig.Options); - requestInfo.AddHeaders(requestConfig.Headers); - } - return requestInfo; - } - /// /// Get the taskProcessingResult resources for a userProcessingResult from a run. /// public class TaskProcessingResultsRequestBuilderGetQueryParameters { @@ -176,21 +139,5 @@ public TaskProcessingResultsRequestBuilderGetRequestConfiguration() { Headers = new RequestHeaders(); } } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - public class TaskProcessingResultsRequestBuilderPostRequestConfiguration { - /// Request headers - public RequestHeaders Headers { get; set; } - /// Request options - public IList Options { get; set; } - /// - /// Instantiates a new taskProcessingResultsRequestBuilderPostRequestConfiguration and sets the default values. - /// - public TaskProcessingResultsRequestBuilderPostRequestConfiguration() { - Options = new List(); - Headers = new RequestHeaders(); - } - } } } diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/UserProcessingResultItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/UserProcessingResultItemRequestBuilder.cs index b774c6967f2..715fa37a40c 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/UserProcessingResultItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/UserProcessingResultItemRequestBuilder.cs @@ -57,19 +57,6 @@ public UserProcessingResultItemRequestBuilder(string rawUrl, IRequestAdapter req RequestAdapter = requestAdapter; } /// - /// Delete navigation property userProcessingResults for identityGovernance - /// - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { - var requestInfo = ToDeleteRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> { - {"4XX", ODataError.CreateFromDiscriminatorValue}, - {"5XX", ODataError.CreateFromDiscriminatorValue}, - }; - await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken); - } - /// /// The associated individual user execution. /// /// Cancellation token to use when cancelling requests @@ -83,39 +70,6 @@ public async Task GetAsync(Action(requestInfo, UserProcessingResult.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Update the navigation property userProcessingResults in identityGovernance - /// - /// The request body - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - public async Task PatchAsync(UserProcessingResult body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPatchRequestInformation(body, requestConfiguration); - var errorMapping = new Dictionary> { - {"4XX", ODataError.CreateFromDiscriminatorValue}, - {"5XX", ODataError.CreateFromDiscriminatorValue}, - }; - return await RequestAdapter.SendAsync(requestInfo, UserProcessingResult.CreateFromDiscriminatorValue, errorMapping, cancellationToken); - } - /// - /// Delete navigation property userProcessingResults for identityGovernance - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { - var requestInfo = new RequestInformation { - HttpMethod = Method.DELETE, - UrlTemplate = UrlTemplate, - PathParameters = PathParameters, - }; - if (requestConfiguration != null) { - var requestConfig = new UserProcessingResultItemRequestBuilderDeleteRequestConfiguration(); - requestConfiguration.Invoke(requestConfig); - requestInfo.AddRequestOptions(requestConfig.Options); - requestInfo.AddHeaders(requestConfig.Headers); - } - return requestInfo; - } - /// /// The associated individual user execution. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -136,44 +90,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the navigation property userProcessingResults in identityGovernance - /// - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. - public RequestInformation ToPatchRequestInformation(UserProcessingResult body, Action requestConfiguration = default) { - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation { - HttpMethod = Method.PATCH, - UrlTemplate = UrlTemplate, - PathParameters = PathParameters, - }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - if (requestConfiguration != null) { - var requestConfig = new UserProcessingResultItemRequestBuilderPatchRequestConfiguration(); - requestConfiguration.Invoke(requestConfig); - requestInfo.AddRequestOptions(requestConfig.Options); - requestInfo.AddHeaders(requestConfig.Headers); - } - return requestInfo; - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - public class UserProcessingResultItemRequestBuilderDeleteRequestConfiguration { - /// Request headers - public RequestHeaders Headers { get; set; } - /// Request options - public IList Options { get; set; } - /// - /// Instantiates a new UserProcessingResultItemRequestBuilderDeleteRequestConfiguration and sets the default values. - /// - public UserProcessingResultItemRequestBuilderDeleteRequestConfiguration() { - Options = new List(); - Headers = new RequestHeaders(); - } - } - /// /// The associated individual user execution. /// public class UserProcessingResultItemRequestBuilderGetQueryParameters { @@ -202,21 +118,5 @@ public UserProcessingResultItemRequestBuilderGetRequestConfiguration() { Headers = new RequestHeaders(); } } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - public class UserProcessingResultItemRequestBuilderPatchRequestConfiguration { - /// Request headers - public RequestHeaders Headers { get; set; } - /// Request options - public IList Options { get; set; } - /// - /// Instantiates a new UserProcessingResultItemRequestBuilderPatchRequestConfiguration and sets the default values. - /// - public UserProcessingResultItemRequestBuilderPatchRequestConfiguration() { - Options = new List(); - Headers = new RequestHeaders(); - } - } } } diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/UserProcessingResultsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/UserProcessingResultsRequestBuilder.cs index f6e5b9f3d3b..a6e58efd75e 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/UserProcessingResultsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/UserProcessingResultsRequestBuilder.cs @@ -74,21 +74,6 @@ public async Task GetAsync(Action(requestInfo, UserProcessingResultCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Create new navigation property to userProcessingResults for identityGovernance - /// - /// The request body - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - public async Task PostAsync(UserProcessingResult body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - var errorMapping = new Dictionary> { - {"4XX", ODataError.CreateFromDiscriminatorValue}, - {"5XX", ODataError.CreateFromDiscriminatorValue}, - }; - return await RequestAdapter.SendAsync(requestInfo, UserProcessingResult.CreateFromDiscriminatorValue, errorMapping, cancellationToken); - } - /// /// Provides operations to call the summary method. /// /// Usage: endDateTime={endDateTime} @@ -119,28 +104,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Create new navigation property to userProcessingResults for identityGovernance - /// - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. - public RequestInformation ToPostRequestInformation(UserProcessingResult body, Action requestConfiguration = default) { - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation { - HttpMethod = Method.POST, - UrlTemplate = UrlTemplate, - PathParameters = PathParameters, - }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - if (requestConfiguration != null) { - var requestConfig = new UserProcessingResultsRequestBuilderPostRequestConfiguration(); - requestConfiguration.Invoke(requestConfig); - requestInfo.AddRequestOptions(requestConfig.Options); - requestInfo.AddHeaders(requestConfig.Headers); - } - return requestInfo; - } - /// /// Get user processing results of a workflow run object. /// public class UserProcessingResultsRequestBuilderGetQueryParameters { @@ -187,21 +150,5 @@ public UserProcessingResultsRequestBuilderGetRequestConfiguration() { Headers = new RequestHeaders(); } } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - public class UserProcessingResultsRequestBuilderPostRequestConfiguration { - /// Request headers - public RequestHeaders Headers { get; set; } - /// Request options - public IList Options { get; set; } - /// - /// Instantiates a new userProcessingResultsRequestBuilderPostRequestConfiguration and sets the default values. - /// - public UserProcessingResultsRequestBuilderPostRequestConfiguration() { - Options = new List(); - Headers = new RequestHeaders(); - } - } } } diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/RunsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/RunsRequestBuilder.cs index 57253069705..76d6d92f602 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/RunsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/RunsRequestBuilder.cs @@ -74,21 +74,6 @@ public async Task GetAsync(Action(requestInfo, RunCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Create new navigation property to runs for identityGovernance - /// - /// The request body - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - public async Task PostAsync(Microsoft.Graph.Beta.Models.IdentityGovernance.Run body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - var errorMapping = new Dictionary> { - {"4XX", ODataError.CreateFromDiscriminatorValue}, - {"5XX", ODataError.CreateFromDiscriminatorValue}, - }; - return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Beta.Models.IdentityGovernance.Run.CreateFromDiscriminatorValue, errorMapping, cancellationToken); - } - /// /// Provides operations to call the summary method. /// /// Usage: endDateTime={endDateTime} @@ -119,28 +104,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Create new navigation property to runs for identityGovernance - /// - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. - public RequestInformation ToPostRequestInformation(Microsoft.Graph.Beta.Models.IdentityGovernance.Run body, Action requestConfiguration = default) { - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation { - HttpMethod = Method.POST, - UrlTemplate = UrlTemplate, - PathParameters = PathParameters, - }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - if (requestConfiguration != null) { - var requestConfig = new RunsRequestBuilderPostRequestConfiguration(); - requestConfiguration.Invoke(requestConfig); - requestInfo.AddRequestOptions(requestConfig.Options); - requestInfo.AddHeaders(requestConfig.Headers); - } - return requestInfo; - } - /// /// Get a list of the run objects and their properties for a lifecycle workflow. /// public class RunsRequestBuilderGetQueryParameters { @@ -187,21 +150,5 @@ public RunsRequestBuilderGetRequestConfiguration() { Headers = new RequestHeaders(); } } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - public class RunsRequestBuilderPostRequestConfiguration { - /// Request headers - public RequestHeaders Headers { get; set; } - /// Request options - public IList Options { get; set; } - /// - /// Instantiates a new runsRequestBuilderPostRequestConfiguration and sets the default values. - /// - public RunsRequestBuilderPostRequestConfiguration() { - Options = new List(); - Headers = new RequestHeaders(); - } - } } } diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.cs index 566dc290d8e..336c4b90bd2 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.cs @@ -62,19 +62,6 @@ public TaskProcessingResultItemRequestBuilder(string rawUrl, IRequestAdapter req RequestAdapter = requestAdapter; } /// - /// Delete navigation property taskProcessingResults for identityGovernance - /// - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { - var requestInfo = ToDeleteRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> { - {"4XX", ODataError.CreateFromDiscriminatorValue}, - {"5XX", ODataError.CreateFromDiscriminatorValue}, - }; - await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken); - } - /// /// The related lifecycle workflow taskProcessingResults. /// /// Cancellation token to use when cancelling requests @@ -88,39 +75,6 @@ public async Task GetAsync(Action(requestInfo, TaskProcessingResult.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Update the navigation property taskProcessingResults in identityGovernance - /// - /// The request body - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - public async Task PatchAsync(TaskProcessingResult body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPatchRequestInformation(body, requestConfiguration); - var errorMapping = new Dictionary> { - {"4XX", ODataError.CreateFromDiscriminatorValue}, - {"5XX", ODataError.CreateFromDiscriminatorValue}, - }; - return await RequestAdapter.SendAsync(requestInfo, TaskProcessingResult.CreateFromDiscriminatorValue, errorMapping, cancellationToken); - } - /// - /// Delete navigation property taskProcessingResults for identityGovernance - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { - var requestInfo = new RequestInformation { - HttpMethod = Method.DELETE, - UrlTemplate = UrlTemplate, - PathParameters = PathParameters, - }; - if (requestConfiguration != null) { - var requestConfig = new TaskProcessingResultItemRequestBuilderDeleteRequestConfiguration(); - requestConfiguration.Invoke(requestConfig); - requestInfo.AddRequestOptions(requestConfig.Options); - requestInfo.AddHeaders(requestConfig.Headers); - } - return requestInfo; - } - /// /// The related lifecycle workflow taskProcessingResults. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -141,44 +95,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the navigation property taskProcessingResults in identityGovernance - /// - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. - public RequestInformation ToPatchRequestInformation(TaskProcessingResult body, Action requestConfiguration = default) { - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation { - HttpMethod = Method.PATCH, - UrlTemplate = UrlTemplate, - PathParameters = PathParameters, - }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - if (requestConfiguration != null) { - var requestConfig = new TaskProcessingResultItemRequestBuilderPatchRequestConfiguration(); - requestConfiguration.Invoke(requestConfig); - requestInfo.AddRequestOptions(requestConfig.Options); - requestInfo.AddHeaders(requestConfig.Headers); - } - return requestInfo; - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - public class TaskProcessingResultItemRequestBuilderDeleteRequestConfiguration { - /// Request headers - public RequestHeaders Headers { get; set; } - /// Request options - public IList Options { get; set; } - /// - /// Instantiates a new TaskProcessingResultItemRequestBuilderDeleteRequestConfiguration and sets the default values. - /// - public TaskProcessingResultItemRequestBuilderDeleteRequestConfiguration() { - Options = new List(); - Headers = new RequestHeaders(); - } - } - /// /// The related lifecycle workflow taskProcessingResults. /// public class TaskProcessingResultItemRequestBuilderGetQueryParameters { @@ -207,21 +123,5 @@ public TaskProcessingResultItemRequestBuilderGetRequestConfiguration() { Headers = new RequestHeaders(); } } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - public class TaskProcessingResultItemRequestBuilderPatchRequestConfiguration { - /// Request headers - public RequestHeaders Headers { get; set; } - /// Request options - public IList Options { get; set; } - /// - /// Instantiates a new TaskProcessingResultItemRequestBuilderPatchRequestConfiguration and sets the default values. - /// - public TaskProcessingResultItemRequestBuilderPatchRequestConfiguration() { - Options = new List(); - Headers = new RequestHeaders(); - } - } } } diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs index 74547434101..77aa1b3ad26 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs @@ -73,21 +73,6 @@ public async Task GetAsync(Action(requestInfo, TaskProcessingResultCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Create new navigation property to taskProcessingResults for identityGovernance - /// - /// The request body - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - public async Task PostAsync(TaskProcessingResult body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - var errorMapping = new Dictionary> { - {"4XX", ODataError.CreateFromDiscriminatorValue}, - {"5XX", ODataError.CreateFromDiscriminatorValue}, - }; - return await RequestAdapter.SendAsync(requestInfo, TaskProcessingResult.CreateFromDiscriminatorValue, errorMapping, cancellationToken); - } - /// /// Get the task processing result resources from the taskReport. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -108,28 +93,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Create new navigation property to taskProcessingResults for identityGovernance - /// - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. - public RequestInformation ToPostRequestInformation(TaskProcessingResult body, Action requestConfiguration = default) { - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation { - HttpMethod = Method.POST, - UrlTemplate = UrlTemplate, - PathParameters = PathParameters, - }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - if (requestConfiguration != null) { - var requestConfig = new TaskProcessingResultsRequestBuilderPostRequestConfiguration(); - requestConfiguration.Invoke(requestConfig); - requestInfo.AddRequestOptions(requestConfig.Options); - requestInfo.AddHeaders(requestConfig.Headers); - } - return requestInfo; - } - /// /// Get the task processing result resources from the taskReport. /// public class TaskProcessingResultsRequestBuilderGetQueryParameters { @@ -176,21 +139,5 @@ public TaskProcessingResultsRequestBuilderGetRequestConfiguration() { Headers = new RequestHeaders(); } } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - public class TaskProcessingResultsRequestBuilderPostRequestConfiguration { - /// Request headers - public RequestHeaders Headers { get; set; } - /// Request options - public IList Options { get; set; } - /// - /// Instantiates a new taskProcessingResultsRequestBuilderPostRequestConfiguration and sets the default values. - /// - public TaskProcessingResultsRequestBuilderPostRequestConfiguration() { - Options = new List(); - Headers = new RequestHeaders(); - } - } } } diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskReportItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskReportItemRequestBuilder.cs index d8e6b1a72a3..0ffa9990368 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskReportItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskReportItemRequestBuilder.cs @@ -62,19 +62,6 @@ public TaskReportItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapte RequestAdapter = requestAdapter; } /// - /// Delete navigation property taskReports for identityGovernance - /// - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { - var requestInfo = ToDeleteRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> { - {"4XX", ODataError.CreateFromDiscriminatorValue}, - {"5XX", ODataError.CreateFromDiscriminatorValue}, - }; - await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken); - } - /// /// Represents the aggregation of task execution data for tasks within a workflow object. /// /// Cancellation token to use when cancelling requests @@ -88,39 +75,6 @@ public async Task GetAsync(Action(requestInfo, TaskReport.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Update the navigation property taskReports in identityGovernance - /// - /// The request body - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - public async Task PatchAsync(TaskReport body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPatchRequestInformation(body, requestConfiguration); - var errorMapping = new Dictionary> { - {"4XX", ODataError.CreateFromDiscriminatorValue}, - {"5XX", ODataError.CreateFromDiscriminatorValue}, - }; - return await RequestAdapter.SendAsync(requestInfo, TaskReport.CreateFromDiscriminatorValue, errorMapping, cancellationToken); - } - /// - /// Delete navigation property taskReports for identityGovernance - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { - var requestInfo = new RequestInformation { - HttpMethod = Method.DELETE, - UrlTemplate = UrlTemplate, - PathParameters = PathParameters, - }; - if (requestConfiguration != null) { - var requestConfig = new TaskReportItemRequestBuilderDeleteRequestConfiguration(); - requestConfiguration.Invoke(requestConfig); - requestInfo.AddRequestOptions(requestConfig.Options); - requestInfo.AddHeaders(requestConfig.Headers); - } - return requestInfo; - } - /// /// Represents the aggregation of task execution data for tasks within a workflow object. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -141,44 +95,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the navigation property taskReports in identityGovernance - /// - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. - public RequestInformation ToPatchRequestInformation(TaskReport body, Action requestConfiguration = default) { - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation { - HttpMethod = Method.PATCH, - UrlTemplate = UrlTemplate, - PathParameters = PathParameters, - }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - if (requestConfiguration != null) { - var requestConfig = new TaskReportItemRequestBuilderPatchRequestConfiguration(); - requestConfiguration.Invoke(requestConfig); - requestInfo.AddRequestOptions(requestConfig.Options); - requestInfo.AddHeaders(requestConfig.Headers); - } - return requestInfo; - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - public class TaskReportItemRequestBuilderDeleteRequestConfiguration { - /// Request headers - public RequestHeaders Headers { get; set; } - /// Request options - public IList Options { get; set; } - /// - /// Instantiates a new TaskReportItemRequestBuilderDeleteRequestConfiguration and sets the default values. - /// - public TaskReportItemRequestBuilderDeleteRequestConfiguration() { - Options = new List(); - Headers = new RequestHeaders(); - } - } - /// /// Represents the aggregation of task execution data for tasks within a workflow object. /// public class TaskReportItemRequestBuilderGetQueryParameters { @@ -207,21 +123,5 @@ public TaskReportItemRequestBuilderGetRequestConfiguration() { Headers = new RequestHeaders(); } } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - public class TaskReportItemRequestBuilderPatchRequestConfiguration { - /// Request headers - public RequestHeaders Headers { get; set; } - /// Request options - public IList Options { get; set; } - /// - /// Instantiates a new TaskReportItemRequestBuilderPatchRequestConfiguration and sets the default values. - /// - public TaskReportItemRequestBuilderPatchRequestConfiguration() { - Options = new List(); - Headers = new RequestHeaders(); - } - } } } diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/TaskReportsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/TaskReportsRequestBuilder.cs index d783bb2cc7a..441aeafd0f5 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/TaskReportsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/TaskReportsRequestBuilder.cs @@ -74,21 +74,6 @@ public async Task GetAsync(Action(requestInfo, TaskReportCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Create new navigation property to taskReports for identityGovernance - /// - /// The request body - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - public async Task PostAsync(TaskReport body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - var errorMapping = new Dictionary> { - {"4XX", ODataError.CreateFromDiscriminatorValue}, - {"5XX", ODataError.CreateFromDiscriminatorValue}, - }; - return await RequestAdapter.SendAsync(requestInfo, TaskReport.CreateFromDiscriminatorValue, errorMapping, cancellationToken); - } - /// /// Provides operations to call the summary method. /// /// Usage: endDateTime={endDateTime} @@ -119,28 +104,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Create new navigation property to taskReports for identityGovernance - /// - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. - public RequestInformation ToPostRequestInformation(TaskReport body, Action requestConfiguration = default) { - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation { - HttpMethod = Method.POST, - UrlTemplate = UrlTemplate, - PathParameters = PathParameters, - }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - if (requestConfiguration != null) { - var requestConfig = new TaskReportsRequestBuilderPostRequestConfiguration(); - requestConfiguration.Invoke(requestConfig); - requestInfo.AddRequestOptions(requestConfig.Options); - requestInfo.AddHeaders(requestConfig.Headers); - } - return requestInfo; - } - /// /// Get a list of the taskReport objects and their properties. /// public class TaskReportsRequestBuilderGetQueryParameters { @@ -187,21 +150,5 @@ public TaskReportsRequestBuilderGetRequestConfiguration() { Headers = new RequestHeaders(); } } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - public class TaskReportsRequestBuilderPostRequestConfiguration { - /// Request headers - public RequestHeaders Headers { get; set; } - /// Request options - public IList Options { get; set; } - /// - /// Instantiates a new taskReportsRequestBuilderPostRequestConfiguration and sets the default values. - /// - public TaskReportsRequestBuilderPostRequestConfiguration() { - Options = new List(); - Headers = new RequestHeaders(); - } - } } } diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.cs index b316f295583..b59ee624190 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.cs @@ -62,19 +62,6 @@ public TaskProcessingResultItemRequestBuilder(string rawUrl, IRequestAdapter req RequestAdapter = requestAdapter; } /// - /// Delete navigation property taskProcessingResults for identityGovernance - /// - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { - var requestInfo = ToDeleteRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> { - {"4XX", ODataError.CreateFromDiscriminatorValue}, - {"5XX", ODataError.CreateFromDiscriminatorValue}, - }; - await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken); - } - /// /// The associated individual task execution. /// /// Cancellation token to use when cancelling requests @@ -88,39 +75,6 @@ public async Task GetAsync(Action(requestInfo, TaskProcessingResult.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Update the navigation property taskProcessingResults in identityGovernance - /// - /// The request body - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - public async Task PatchAsync(TaskProcessingResult body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPatchRequestInformation(body, requestConfiguration); - var errorMapping = new Dictionary> { - {"4XX", ODataError.CreateFromDiscriminatorValue}, - {"5XX", ODataError.CreateFromDiscriminatorValue}, - }; - return await RequestAdapter.SendAsync(requestInfo, TaskProcessingResult.CreateFromDiscriminatorValue, errorMapping, cancellationToken); - } - /// - /// Delete navigation property taskProcessingResults for identityGovernance - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { - var requestInfo = new RequestInformation { - HttpMethod = Method.DELETE, - UrlTemplate = UrlTemplate, - PathParameters = PathParameters, - }; - if (requestConfiguration != null) { - var requestConfig = new TaskProcessingResultItemRequestBuilderDeleteRequestConfiguration(); - requestConfiguration.Invoke(requestConfig); - requestInfo.AddRequestOptions(requestConfig.Options); - requestInfo.AddHeaders(requestConfig.Headers); - } - return requestInfo; - } - /// /// The associated individual task execution. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -141,44 +95,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the navigation property taskProcessingResults in identityGovernance - /// - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. - public RequestInformation ToPatchRequestInformation(TaskProcessingResult body, Action requestConfiguration = default) { - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation { - HttpMethod = Method.PATCH, - UrlTemplate = UrlTemplate, - PathParameters = PathParameters, - }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - if (requestConfiguration != null) { - var requestConfig = new TaskProcessingResultItemRequestBuilderPatchRequestConfiguration(); - requestConfiguration.Invoke(requestConfig); - requestInfo.AddRequestOptions(requestConfig.Options); - requestInfo.AddHeaders(requestConfig.Headers); - } - return requestInfo; - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - public class TaskProcessingResultItemRequestBuilderDeleteRequestConfiguration { - /// Request headers - public RequestHeaders Headers { get; set; } - /// Request options - public IList Options { get; set; } - /// - /// Instantiates a new TaskProcessingResultItemRequestBuilderDeleteRequestConfiguration and sets the default values. - /// - public TaskProcessingResultItemRequestBuilderDeleteRequestConfiguration() { - Options = new List(); - Headers = new RequestHeaders(); - } - } - /// /// The associated individual task execution. /// public class TaskProcessingResultItemRequestBuilderGetQueryParameters { @@ -207,21 +123,5 @@ public TaskProcessingResultItemRequestBuilderGetRequestConfiguration() { Headers = new RequestHeaders(); } } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - public class TaskProcessingResultItemRequestBuilderPatchRequestConfiguration { - /// Request headers - public RequestHeaders Headers { get; set; } - /// Request options - public IList Options { get; set; } - /// - /// Instantiates a new TaskProcessingResultItemRequestBuilderPatchRequestConfiguration and sets the default values. - /// - public TaskProcessingResultItemRequestBuilderPatchRequestConfiguration() { - Options = new List(); - Headers = new RequestHeaders(); - } - } } } diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs index 3a56af177cc..6f8ebc5e432 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs @@ -73,21 +73,6 @@ public async Task GetAsync(Action(requestInfo, TaskProcessingResultCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Create new navigation property to taskProcessingResults for identityGovernance - /// - /// The request body - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - public async Task PostAsync(TaskProcessingResult body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - var errorMapping = new Dictionary> { - {"4XX", ODataError.CreateFromDiscriminatorValue}, - {"5XX", ODataError.CreateFromDiscriminatorValue}, - }; - return await RequestAdapter.SendAsync(requestInfo, TaskProcessingResult.CreateFromDiscriminatorValue, errorMapping, cancellationToken); - } - /// /// Get the taskProcessingResult resources for a userProcessingResult from a run. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -108,28 +93,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Create new navigation property to taskProcessingResults for identityGovernance - /// - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. - public RequestInformation ToPostRequestInformation(TaskProcessingResult body, Action requestConfiguration = default) { - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation { - HttpMethod = Method.POST, - UrlTemplate = UrlTemplate, - PathParameters = PathParameters, - }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - if (requestConfiguration != null) { - var requestConfig = new TaskProcessingResultsRequestBuilderPostRequestConfiguration(); - requestConfiguration.Invoke(requestConfig); - requestInfo.AddRequestOptions(requestConfig.Options); - requestInfo.AddHeaders(requestConfig.Headers); - } - return requestInfo; - } - /// /// Get the taskProcessingResult resources for a userProcessingResult from a run. /// public class TaskProcessingResultsRequestBuilderGetQueryParameters { @@ -176,21 +139,5 @@ public TaskProcessingResultsRequestBuilderGetRequestConfiguration() { Headers = new RequestHeaders(); } } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - public class TaskProcessingResultsRequestBuilderPostRequestConfiguration { - /// Request headers - public RequestHeaders Headers { get; set; } - /// Request options - public IList Options { get; set; } - /// - /// Instantiates a new taskProcessingResultsRequestBuilderPostRequestConfiguration and sets the default values. - /// - public TaskProcessingResultsRequestBuilderPostRequestConfiguration() { - Options = new List(); - Headers = new RequestHeaders(); - } - } } } diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/UserProcessingResultItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/UserProcessingResultItemRequestBuilder.cs index 08b9cd22d84..8d022f44239 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/UserProcessingResultItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/UserProcessingResultItemRequestBuilder.cs @@ -57,19 +57,6 @@ public UserProcessingResultItemRequestBuilder(string rawUrl, IRequestAdapter req RequestAdapter = requestAdapter; } /// - /// Delete navigation property userProcessingResults for identityGovernance - /// - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { - var requestInfo = ToDeleteRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> { - {"4XX", ODataError.CreateFromDiscriminatorValue}, - {"5XX", ODataError.CreateFromDiscriminatorValue}, - }; - await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken); - } - /// /// Get userProcessingResults from identityGovernance /// /// Cancellation token to use when cancelling requests @@ -83,39 +70,6 @@ public async Task GetAsync(Action(requestInfo, UserProcessingResult.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Update the navigation property userProcessingResults in identityGovernance - /// - /// The request body - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - public async Task PatchAsync(UserProcessingResult body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPatchRequestInformation(body, requestConfiguration); - var errorMapping = new Dictionary> { - {"4XX", ODataError.CreateFromDiscriminatorValue}, - {"5XX", ODataError.CreateFromDiscriminatorValue}, - }; - return await RequestAdapter.SendAsync(requestInfo, UserProcessingResult.CreateFromDiscriminatorValue, errorMapping, cancellationToken); - } - /// - /// Delete navigation property userProcessingResults for identityGovernance - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { - var requestInfo = new RequestInformation { - HttpMethod = Method.DELETE, - UrlTemplate = UrlTemplate, - PathParameters = PathParameters, - }; - if (requestConfiguration != null) { - var requestConfig = new UserProcessingResultItemRequestBuilderDeleteRequestConfiguration(); - requestConfiguration.Invoke(requestConfig); - requestInfo.AddRequestOptions(requestConfig.Options); - requestInfo.AddHeaders(requestConfig.Headers); - } - return requestInfo; - } - /// /// Get userProcessingResults from identityGovernance /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -136,44 +90,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the navigation property userProcessingResults in identityGovernance - /// - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. - public RequestInformation ToPatchRequestInformation(UserProcessingResult body, Action requestConfiguration = default) { - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation { - HttpMethod = Method.PATCH, - UrlTemplate = UrlTemplate, - PathParameters = PathParameters, - }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - if (requestConfiguration != null) { - var requestConfig = new UserProcessingResultItemRequestBuilderPatchRequestConfiguration(); - requestConfiguration.Invoke(requestConfig); - requestInfo.AddRequestOptions(requestConfig.Options); - requestInfo.AddHeaders(requestConfig.Headers); - } - return requestInfo; - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - public class UserProcessingResultItemRequestBuilderDeleteRequestConfiguration { - /// Request headers - public RequestHeaders Headers { get; set; } - /// Request options - public IList Options { get; set; } - /// - /// Instantiates a new UserProcessingResultItemRequestBuilderDeleteRequestConfiguration and sets the default values. - /// - public UserProcessingResultItemRequestBuilderDeleteRequestConfiguration() { - Options = new List(); - Headers = new RequestHeaders(); - } - } - /// /// Get userProcessingResults from identityGovernance /// public class UserProcessingResultItemRequestBuilderGetQueryParameters { @@ -202,21 +118,5 @@ public UserProcessingResultItemRequestBuilderGetRequestConfiguration() { Headers = new RequestHeaders(); } } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - public class UserProcessingResultItemRequestBuilderPatchRequestConfiguration { - /// Request headers - public RequestHeaders Headers { get; set; } - /// Request options - public IList Options { get; set; } - /// - /// Instantiates a new UserProcessingResultItemRequestBuilderPatchRequestConfiguration and sets the default values. - /// - public UserProcessingResultItemRequestBuilderPatchRequestConfiguration() { - Options = new List(); - Headers = new RequestHeaders(); - } - } } } diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/UserProcessingResultsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/UserProcessingResultsRequestBuilder.cs index 5813563f7ea..322c8474294 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/UserProcessingResultsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/UserProcessingResultsRequestBuilder.cs @@ -74,21 +74,6 @@ public async Task GetAsync(Action(requestInfo, UserProcessingResultCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Create new navigation property to userProcessingResults for identityGovernance - /// - /// The request body - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - public async Task PostAsync(UserProcessingResult body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - var errorMapping = new Dictionary> { - {"4XX", ODataError.CreateFromDiscriminatorValue}, - {"5XX", ODataError.CreateFromDiscriminatorValue}, - }; - return await RequestAdapter.SendAsync(requestInfo, UserProcessingResult.CreateFromDiscriminatorValue, errorMapping, cancellationToken); - } - /// /// Provides operations to call the summary method. /// /// Usage: endDateTime={endDateTime} @@ -119,28 +104,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Create new navigation property to userProcessingResults for identityGovernance - /// - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. - public RequestInformation ToPostRequestInformation(UserProcessingResult body, Action requestConfiguration = default) { - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation { - HttpMethod = Method.POST, - UrlTemplate = UrlTemplate, - PathParameters = PathParameters, - }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - if (requestConfiguration != null) { - var requestConfig = new UserProcessingResultsRequestBuilderPostRequestConfiguration(); - requestConfiguration.Invoke(requestConfig); - requestInfo.AddRequestOptions(requestConfig.Options); - requestInfo.AddHeaders(requestConfig.Headers); - } - return requestInfo; - } - /// /// Get the **userProcessingResult** resources for a workflow. /// public class UserProcessingResultsRequestBuilderGetQueryParameters { @@ -187,21 +150,5 @@ public UserProcessingResultsRequestBuilderGetRequestConfiguration() { Headers = new RequestHeaders(); } } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - public class UserProcessingResultsRequestBuilderPostRequestConfiguration { - /// Request headers - public RequestHeaders Headers { get; set; } - /// Request options - public IList Options { get; set; } - /// - /// Instantiates a new userProcessingResultsRequestBuilderPostRequestConfiguration and sets the default values. - /// - public UserProcessingResultsRequestBuilderPostRequestConfiguration() { - Options = new List(); - Headers = new RequestHeaders(); - } - } } } diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/WorkflowVersionVersionNumberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/WorkflowVersionVersionNumberItemRequestBuilder.cs index ce0885d0f86..a2df034c70c 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/WorkflowVersionVersionNumberItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/WorkflowVersionVersionNumberItemRequestBuilder.cs @@ -47,19 +47,6 @@ public WorkflowVersionVersionNumberItemRequestBuilder(string rawUrl, IRequestAda RequestAdapter = requestAdapter; } /// - /// Delete navigation property versions for identityGovernance - /// - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { - var requestInfo = ToDeleteRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> { - {"4XX", ODataError.CreateFromDiscriminatorValue}, - {"5XX", ODataError.CreateFromDiscriminatorValue}, - }; - await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken); - } - /// /// The workflow versions that are available. /// /// Cancellation token to use when cancelling requests @@ -73,39 +60,6 @@ public async Task GetAsync(Action(requestInfo, WorkflowVersion.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Update the navigation property versions in identityGovernance - /// - /// The request body - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - public async Task PatchAsync(WorkflowVersion body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPatchRequestInformation(body, requestConfiguration); - var errorMapping = new Dictionary> { - {"4XX", ODataError.CreateFromDiscriminatorValue}, - {"5XX", ODataError.CreateFromDiscriminatorValue}, - }; - return await RequestAdapter.SendAsync(requestInfo, WorkflowVersion.CreateFromDiscriminatorValue, errorMapping, cancellationToken); - } - /// - /// Delete navigation property versions for identityGovernance - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { - var requestInfo = new RequestInformation { - HttpMethod = Method.DELETE, - UrlTemplate = UrlTemplate, - PathParameters = PathParameters, - }; - if (requestConfiguration != null) { - var requestConfig = new WorkflowVersionVersionNumberItemRequestBuilderDeleteRequestConfiguration(); - requestConfiguration.Invoke(requestConfig); - requestInfo.AddRequestOptions(requestConfig.Options); - requestInfo.AddHeaders(requestConfig.Headers); - } - return requestInfo; - } - /// /// The workflow versions that are available. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -126,44 +80,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the navigation property versions in identityGovernance - /// - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. - public RequestInformation ToPatchRequestInformation(WorkflowVersion body, Action requestConfiguration = default) { - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation { - HttpMethod = Method.PATCH, - UrlTemplate = UrlTemplate, - PathParameters = PathParameters, - }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - if (requestConfiguration != null) { - var requestConfig = new WorkflowVersionVersionNumberItemRequestBuilderPatchRequestConfiguration(); - requestConfiguration.Invoke(requestConfig); - requestInfo.AddRequestOptions(requestConfig.Options); - requestInfo.AddHeaders(requestConfig.Headers); - } - return requestInfo; - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - public class WorkflowVersionVersionNumberItemRequestBuilderDeleteRequestConfiguration { - /// Request headers - public RequestHeaders Headers { get; set; } - /// Request options - public IList Options { get; set; } - /// - /// Instantiates a new WorkflowVersionVersionNumberItemRequestBuilderDeleteRequestConfiguration and sets the default values. - /// - public WorkflowVersionVersionNumberItemRequestBuilderDeleteRequestConfiguration() { - Options = new List(); - Headers = new RequestHeaders(); - } - } - /// /// The workflow versions that are available. /// public class WorkflowVersionVersionNumberItemRequestBuilderGetQueryParameters { @@ -192,21 +108,5 @@ public WorkflowVersionVersionNumberItemRequestBuilderGetRequestConfiguration() { Headers = new RequestHeaders(); } } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - public class WorkflowVersionVersionNumberItemRequestBuilderPatchRequestConfiguration { - /// Request headers - public RequestHeaders Headers { get; set; } - /// Request options - public IList Options { get; set; } - /// - /// Instantiates a new WorkflowVersionVersionNumberItemRequestBuilderPatchRequestConfiguration and sets the default values. - /// - public WorkflowVersionVersionNumberItemRequestBuilderPatchRequestConfiguration() { - Options = new List(); - Headers = new RequestHeaders(); - } - } } } diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/VersionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/VersionsRequestBuilder.cs index de6e2b673a6..0726f964738 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/VersionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/VersionsRequestBuilder.cs @@ -73,21 +73,6 @@ public async Task GetAsync(Action(requestInfo, WorkflowVersionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Create new navigation property to versions for identityGovernance - /// - /// The request body - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - public async Task PostAsync(WorkflowVersion body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - var errorMapping = new Dictionary> { - {"4XX", ODataError.CreateFromDiscriminatorValue}, - {"5XX", ODataError.CreateFromDiscriminatorValue}, - }; - return await RequestAdapter.SendAsync(requestInfo, WorkflowVersion.CreateFromDiscriminatorValue, errorMapping, cancellationToken); - } - /// /// Get a list of the workflowVersion objects and their properties. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -108,28 +93,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Create new navigation property to versions for identityGovernance - /// - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. - public RequestInformation ToPostRequestInformation(WorkflowVersion body, Action requestConfiguration = default) { - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation { - HttpMethod = Method.POST, - UrlTemplate = UrlTemplate, - PathParameters = PathParameters, - }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - if (requestConfiguration != null) { - var requestConfig = new VersionsRequestBuilderPostRequestConfiguration(); - requestConfiguration.Invoke(requestConfig); - requestInfo.AddRequestOptions(requestConfig.Options); - requestInfo.AddHeaders(requestConfig.Headers); - } - return requestInfo; - } - /// /// Get a list of the workflowVersion objects and their properties. /// public class VersionsRequestBuilderGetQueryParameters { @@ -176,21 +139,5 @@ public VersionsRequestBuilderGetRequestConfiguration() { Headers = new RequestHeaders(); } } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - public class VersionsRequestBuilderPostRequestConfiguration { - /// Request headers - public RequestHeaders Headers { get; set; } - /// Request options - public IList Options { get; set; } - /// - /// Instantiates a new versionsRequestBuilderPostRequestConfiguration and sets the default values. - /// - public VersionsRequestBuilderPostRequestConfiguration() { - Options = new List(); - Headers = new RequestHeaders(); - } - } } } diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/AssignmentScheduleInstancesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/AssignmentScheduleInstancesRequestBuilder.cs new file mode 100644 index 00000000000..4cacd8bf83b --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/AssignmentScheduleInstancesRequestBuilder.cs @@ -0,0 +1,204 @@ +using Microsoft.Graph.Beta.IdentityGovernance.PrivilegedAccess.Group.AssignmentScheduleInstances.Count; +using Microsoft.Graph.Beta.IdentityGovernance.PrivilegedAccess.Group.AssignmentScheduleInstances.FilterByCurrentUserWithOn; +using Microsoft.Graph.Beta.IdentityGovernance.PrivilegedAccess.Group.AssignmentScheduleInstances.Item; +using Microsoft.Graph.Beta.Models; +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +namespace Microsoft.Graph.Beta.IdentityGovernance.PrivilegedAccess.Group.AssignmentScheduleInstances { + /// + /// Provides operations to manage the assignmentScheduleInstances property of the microsoft.graph.privilegedAccessGroup entity. + /// + public class AssignmentScheduleInstancesRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// Provides operations to manage the assignmentScheduleInstances property of the microsoft.graph.privilegedAccessGroup entity. + public PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("privilegedAccessGroupAssignmentScheduleInstance%2Did", position); + return new PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new AssignmentScheduleInstancesRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public AssignmentScheduleInstancesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) { + _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentScheduleInstances{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}"; + var urlTplParams = new Dictionary(pathParameters); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Instantiates a new AssignmentScheduleInstancesRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public AssignmentScheduleInstancesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { + if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentScheduleInstances{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}"; + var urlTplParams = new Dictionary(); + urlTplParams.Add("request-raw-url", rawUrl); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Provides operations to call the filterByCurrentUser method. + /// + /// Usage: on='{on}' + public FilterByCurrentUserWithOnRequestBuilder FilterByCurrentUserWithOn(string on) { + if(string.IsNullOrEmpty(on)) throw new ArgumentNullException(nameof(on)); + return new FilterByCurrentUserWithOnRequestBuilder(PathParameters, RequestAdapter, on); + } + /// + /// Get assignmentScheduleInstances from identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, PrivilegedAccessGroupAssignmentScheduleInstanceCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Create new navigation property to assignmentScheduleInstances for identityGovernance + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + public async Task PostAsync(PrivilegedAccessGroupAssignmentScheduleInstance body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, PrivilegedAccessGroupAssignmentScheduleInstance.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Get assignmentScheduleInstances from identityGovernance + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new AssignmentScheduleInstancesRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Create new navigation property to assignmentScheduleInstances for identityGovernance + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. + public RequestInformation ToPostRequestInformation(PrivilegedAccessGroupAssignmentScheduleInstance body, Action requestConfiguration = default) { + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new AssignmentScheduleInstancesRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get assignmentScheduleInstances from identityGovernance + /// + public class AssignmentScheduleInstancesRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities + [QueryParameter("%24expand")] + public string[] Expand { get; set; } + /// Filter items by property values + [QueryParameter("%24filter")] + public string Filter { get; set; } + /// Order items by property values + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } + /// Search items by search phrases + [QueryParameter("%24search")] + public string Search { get; set; } + /// Select properties to be returned + [QueryParameter("%24select")] + public string[] Select { get; set; } + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class AssignmentScheduleInstancesRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public AssignmentScheduleInstancesRequestBuilderGetQueryParameters QueryParameters { get; set; } = new AssignmentScheduleInstancesRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new assignmentScheduleInstancesRequestBuilderGetRequestConfiguration and sets the default values. + /// + public AssignmentScheduleInstancesRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class AssignmentScheduleInstancesRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new assignmentScheduleInstancesRequestBuilderPostRequestConfiguration and sets the default values. + /// + public AssignmentScheduleInstancesRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..cdc1a7ce3fa --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Count/CountRequestBuilder.cs @@ -0,0 +1,97 @@ +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +namespace Microsoft.Graph.Beta.IdentityGovernance.PrivilegedAccess.Group.AssignmentScheduleInstances.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder { + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) { + _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentScheduleInstances/$count"; + var urlTplParams = new Dictionary(pathParameters); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { + if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentScheduleInstances/$count"; + var urlTplParams = new Dictionary(); + urlTplParams.Add("request-raw-url", rawUrl); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs new file mode 100644 index 00000000000..9668244403e --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs @@ -0,0 +1,128 @@ +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +namespace Microsoft.Graph.Beta.IdentityGovernance.PrivilegedAccess.Group.AssignmentScheduleInstances.FilterByCurrentUserWithOn { + /// + /// Provides operations to call the filterByCurrentUser method. + /// + public class FilterByCurrentUserWithOnRequestBuilder { + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// + /// Instantiates a new FilterByCurrentUserWithOnRequestBuilder and sets the default values. + /// + /// Usage: on='{on}' + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public FilterByCurrentUserWithOnRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter, string on = default) { + _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentScheduleInstances/microsoft.graph.filterByCurrentUser(on='{on}'){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"; + var urlTplParams = new Dictionary(pathParameters); + urlTplParams.Add("on", on); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Instantiates a new FilterByCurrentUserWithOnRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public FilterByCurrentUserWithOnRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { + if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentScheduleInstances/microsoft.graph.filterByCurrentUser(on='{on}'){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"; + var urlTplParams = new Dictionary(); + urlTplParams.Add("request-raw-url", rawUrl); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Invoke function filterByCurrentUser + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, FilterByCurrentUserWithOnResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Invoke function filterByCurrentUser + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new FilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Invoke function filterByCurrentUser + /// + public class FilterByCurrentUserWithOnRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Filter items by property values + [QueryParameter("%24filter")] + public string Filter { get; set; } + /// Order items by property values + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } + /// Search items by search phrases + [QueryParameter("%24search")] + public string Search { get; set; } + /// Select properties to be returned + [QueryParameter("%24select")] + public string[] Select { get; set; } + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class FilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public FilterByCurrentUserWithOnRequestBuilderGetQueryParameters QueryParameters { get; set; } = new FilterByCurrentUserWithOnRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new filterByCurrentUserWithOnRequestBuilderGetRequestConfiguration and sets the default values. + /// + public FilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs new file mode 100644 index 00000000000..696bcdadfe7 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs @@ -0,0 +1,40 @@ +using Microsoft.Graph.Beta.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +namespace Microsoft.Graph.Beta.IdentityGovernance.PrivilegedAccess.Group.AssignmentScheduleInstances.FilterByCurrentUserWithOn { + public class FilterByCurrentUserWithOnResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new FilterByCurrentUserWithOnResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new FilterByCurrentUserWithOnResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(PrivilegedAccessGroupAssignmentScheduleInstance.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/ActivatedUsing/ActivatedUsingRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/ActivatedUsing/ActivatedUsingRequestBuilder.cs new file mode 100644 index 00000000000..7133df44025 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/ActivatedUsing/ActivatedUsingRequestBuilder.cs @@ -0,0 +1,112 @@ +using Microsoft.Graph.Beta.Models; +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +namespace Microsoft.Graph.Beta.IdentityGovernance.PrivilegedAccess.Group.AssignmentScheduleInstances.Item.ActivatedUsing { + /// + /// Provides operations to manage the activatedUsing property of the microsoft.graph.privilegedAccessGroupAssignmentScheduleInstance entity. + /// + public class ActivatedUsingRequestBuilder { + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// + /// Instantiates a new ActivatedUsingRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ActivatedUsingRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) { + _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentScheduleInstances/{privilegedAccessGroupAssignmentScheduleInstance%2Did}/activatedUsing{?%24select,%24expand}"; + var urlTplParams = new Dictionary(pathParameters); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Instantiates a new ActivatedUsingRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ActivatedUsingRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { + if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentScheduleInstances/{privilegedAccessGroupAssignmentScheduleInstance%2Did}/activatedUsing{?%24select,%24expand}"; + var urlTplParams = new Dictionary(); + urlTplParams.Add("request-raw-url", rawUrl); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Get activatedUsing from identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, PrivilegedAccessGroupEligibilityScheduleInstance.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Get activatedUsing from identityGovernance + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ActivatedUsingRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get activatedUsing from identityGovernance + /// + public class ActivatedUsingRequestBuilderGetQueryParameters { + /// Expand related entities + [QueryParameter("%24expand")] + public string[] Expand { get; set; } + /// Select properties to be returned + [QueryParameter("%24select")] + public string[] Select { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ActivatedUsingRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ActivatedUsingRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ActivatedUsingRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new activatedUsingRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ActivatedUsingRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/Group/GroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/Group/GroupRequestBuilder.cs new file mode 100644 index 00000000000..19f1b454a3f --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/Group/GroupRequestBuilder.cs @@ -0,0 +1,112 @@ +using Microsoft.Graph.Beta.Models; +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +namespace Microsoft.Graph.Beta.IdentityGovernance.PrivilegedAccess.Group.AssignmentScheduleInstances.Item.Group { + /// + /// Provides operations to manage the group property of the microsoft.graph.privilegedAccessGroupAssignmentScheduleInstance entity. + /// + public class GroupRequestBuilder { + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// + /// Instantiates a new GroupRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public GroupRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) { + _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentScheduleInstances/{privilegedAccessGroupAssignmentScheduleInstance%2Did}/group{?%24select,%24expand}"; + var urlTplParams = new Dictionary(pathParameters); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Instantiates a new GroupRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public GroupRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { + if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentScheduleInstances/{privilegedAccessGroupAssignmentScheduleInstance%2Did}/group{?%24select,%24expand}"; + var urlTplParams = new Dictionary(); + urlTplParams.Add("request-raw-url", rawUrl); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Get group from identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Beta.Models.Group.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Get group from identityGovernance + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new GroupRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get group from identityGovernance + /// + public class GroupRequestBuilderGetQueryParameters { + /// Expand related entities + [QueryParameter("%24expand")] + public string[] Expand { get; set; } + /// Select properties to be returned + [QueryParameter("%24select")] + public string[] Select { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class GroupRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public GroupRequestBuilderGetQueryParameters QueryParameters { get; set; } = new GroupRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new groupRequestBuilderGetRequestConfiguration and sets the default values. + /// + public GroupRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/Principal/PrincipalRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/Principal/PrincipalRequestBuilder.cs new file mode 100644 index 00000000000..37aeb82e777 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/Principal/PrincipalRequestBuilder.cs @@ -0,0 +1,112 @@ +using Microsoft.Graph.Beta.Models; +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +namespace Microsoft.Graph.Beta.IdentityGovernance.PrivilegedAccess.Group.AssignmentScheduleInstances.Item.Principal { + /// + /// Provides operations to manage the principal property of the microsoft.graph.privilegedAccessGroupAssignmentScheduleInstance entity. + /// + public class PrincipalRequestBuilder { + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// + /// Instantiates a new PrincipalRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public PrincipalRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) { + _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentScheduleInstances/{privilegedAccessGroupAssignmentScheduleInstance%2Did}/principal{?%24select,%24expand}"; + var urlTplParams = new Dictionary(pathParameters); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Instantiates a new PrincipalRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public PrincipalRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { + if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentScheduleInstances/{privilegedAccessGroupAssignmentScheduleInstance%2Did}/principal{?%24select,%24expand}"; + var urlTplParams = new Dictionary(); + urlTplParams.Add("request-raw-url", rawUrl); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Get principal from identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DirectoryObject.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Get principal from identityGovernance + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new PrincipalRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get principal from identityGovernance + /// + public class PrincipalRequestBuilderGetQueryParameters { + /// Expand related entities + [QueryParameter("%24expand")] + public string[] Expand { get; set; } + /// Select properties to be returned + [QueryParameter("%24select")] + public string[] Select { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class PrincipalRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public PrincipalRequestBuilderGetQueryParameters QueryParameters { get; set; } = new PrincipalRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new principalRequestBuilderGetRequestConfiguration and sets the default values. + /// + public PrincipalRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilder.cs new file mode 100644 index 00000000000..af8911e19a9 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilder.cs @@ -0,0 +1,227 @@ +using Microsoft.Graph.Beta.IdentityGovernance.PrivilegedAccess.Group.AssignmentScheduleInstances.Item.ActivatedUsing; +using Microsoft.Graph.Beta.IdentityGovernance.PrivilegedAccess.Group.AssignmentScheduleInstances.Item.Group; +using Microsoft.Graph.Beta.IdentityGovernance.PrivilegedAccess.Group.AssignmentScheduleInstances.Item.Principal; +using Microsoft.Graph.Beta.Models; +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +namespace Microsoft.Graph.Beta.IdentityGovernance.PrivilegedAccess.Group.AssignmentScheduleInstances.Item { + /// + /// Provides operations to manage the assignmentScheduleInstances property of the microsoft.graph.privilegedAccessGroup entity. + /// + public class PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilder { + /// Provides operations to manage the activatedUsing property of the microsoft.graph.privilegedAccessGroupAssignmentScheduleInstance entity. + public ActivatedUsingRequestBuilder ActivatedUsing { get => + new ActivatedUsingRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the group property of the microsoft.graph.privilegedAccessGroupAssignmentScheduleInstance entity. + public Microsoft.Graph.Beta.IdentityGovernance.PrivilegedAccess.Group.AssignmentScheduleInstances.Item.Group.GroupRequestBuilder Group { get => + new Microsoft.Graph.Beta.IdentityGovernance.PrivilegedAccess.Group.AssignmentScheduleInstances.Item.Group.GroupRequestBuilder(PathParameters, RequestAdapter); + } + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// Provides operations to manage the principal property of the microsoft.graph.privilegedAccessGroupAssignmentScheduleInstance entity. + public PrincipalRequestBuilder Principal { get => + new PrincipalRequestBuilder(PathParameters, RequestAdapter); + } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// + /// Instantiates a new PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) { + _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentScheduleInstances/{privilegedAccessGroupAssignmentScheduleInstance%2Did}{?%24select,%24expand}"; + var urlTplParams = new Dictionary(pathParameters); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Instantiates a new PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { + if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentScheduleInstances/{privilegedAccessGroupAssignmentScheduleInstance%2Did}{?%24select,%24expand}"; + var urlTplParams = new Dictionary(); + urlTplParams.Add("request-raw-url", rawUrl); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Delete navigation property assignmentScheduleInstances for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken); + } + /// + /// Get assignmentScheduleInstances from identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, PrivilegedAccessGroupAssignmentScheduleInstance.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Update the navigation property assignmentScheduleInstances in identityGovernance + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + public async Task PatchAsync(PrivilegedAccessGroupAssignmentScheduleInstance body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, PrivilegedAccessGroupAssignmentScheduleInstance.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Delete navigation property assignmentScheduleInstances for identityGovernance + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get assignmentScheduleInstances from identityGovernance + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update the navigation property assignmentScheduleInstances in identityGovernance + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. + public RequestInformation ToPatchRequestInformation(PrivilegedAccessGroupAssignmentScheduleInstance body, Action requestConfiguration = default) { + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Get assignmentScheduleInstances from identityGovernance + /// + public class PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilderGetQueryParameters { + /// Expand related entities + [QueryParameter("%24expand")] + public string[] Expand { get; set; } + /// Select properties to be returned + [QueryParameter("%24select")] + public string[] Select { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/AssignmentScheduleRequestsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/AssignmentScheduleRequestsRequestBuilder.cs new file mode 100644 index 00000000000..6f8fa91c386 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/AssignmentScheduleRequestsRequestBuilder.cs @@ -0,0 +1,204 @@ +using Microsoft.Graph.Beta.IdentityGovernance.PrivilegedAccess.Group.AssignmentScheduleRequests.Count; +using Microsoft.Graph.Beta.IdentityGovernance.PrivilegedAccess.Group.AssignmentScheduleRequests.FilterByCurrentUserWithOn; +using Microsoft.Graph.Beta.IdentityGovernance.PrivilegedAccess.Group.AssignmentScheduleRequests.Item; +using Microsoft.Graph.Beta.Models; +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +namespace Microsoft.Graph.Beta.IdentityGovernance.PrivilegedAccess.Group.AssignmentScheduleRequests { + /// + /// Provides operations to manage the assignmentScheduleRequests property of the microsoft.graph.privilegedAccessGroup entity. + /// + public class AssignmentScheduleRequestsRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// Provides operations to manage the assignmentScheduleRequests property of the microsoft.graph.privilegedAccessGroup entity. + public PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("privilegedAccessGroupAssignmentScheduleRequest%2Did", position); + return new PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new AssignmentScheduleRequestsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public AssignmentScheduleRequestsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) { + _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentScheduleRequests{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}"; + var urlTplParams = new Dictionary(pathParameters); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Instantiates a new AssignmentScheduleRequestsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public AssignmentScheduleRequestsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { + if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentScheduleRequests{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}"; + var urlTplParams = new Dictionary(); + urlTplParams.Add("request-raw-url", rawUrl); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Provides operations to call the filterByCurrentUser method. + /// + /// Usage: on='{on}' + public FilterByCurrentUserWithOnRequestBuilder FilterByCurrentUserWithOn(string on) { + if(string.IsNullOrEmpty(on)) throw new ArgumentNullException(nameof(on)); + return new FilterByCurrentUserWithOnRequestBuilder(PathParameters, RequestAdapter, on); + } + /// + /// Get assignmentScheduleRequests from identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, PrivilegedAccessGroupAssignmentScheduleRequestCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Create new navigation property to assignmentScheduleRequests for identityGovernance + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + public async Task PostAsync(PrivilegedAccessGroupAssignmentScheduleRequest body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, PrivilegedAccessGroupAssignmentScheduleRequest.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Get assignmentScheduleRequests from identityGovernance + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new AssignmentScheduleRequestsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Create new navigation property to assignmentScheduleRequests for identityGovernance + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. + public RequestInformation ToPostRequestInformation(PrivilegedAccessGroupAssignmentScheduleRequest body, Action requestConfiguration = default) { + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new AssignmentScheduleRequestsRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get assignmentScheduleRequests from identityGovernance + /// + public class AssignmentScheduleRequestsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities + [QueryParameter("%24expand")] + public string[] Expand { get; set; } + /// Filter items by property values + [QueryParameter("%24filter")] + public string Filter { get; set; } + /// Order items by property values + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } + /// Search items by search phrases + [QueryParameter("%24search")] + public string Search { get; set; } + /// Select properties to be returned + [QueryParameter("%24select")] + public string[] Select { get; set; } + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class AssignmentScheduleRequestsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public AssignmentScheduleRequestsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new AssignmentScheduleRequestsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new assignmentScheduleRequestsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public AssignmentScheduleRequestsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class AssignmentScheduleRequestsRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new assignmentScheduleRequestsRequestBuilderPostRequestConfiguration and sets the default values. + /// + public AssignmentScheduleRequestsRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..d949053516e --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Count/CountRequestBuilder.cs @@ -0,0 +1,97 @@ +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +namespace Microsoft.Graph.Beta.IdentityGovernance.PrivilegedAccess.Group.AssignmentScheduleRequests.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder { + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) { + _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentScheduleRequests/$count"; + var urlTplParams = new Dictionary(pathParameters); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { + if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentScheduleRequests/$count"; + var urlTplParams = new Dictionary(); + urlTplParams.Add("request-raw-url", rawUrl); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs new file mode 100644 index 00000000000..4b7154d635b --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs @@ -0,0 +1,128 @@ +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +namespace Microsoft.Graph.Beta.IdentityGovernance.PrivilegedAccess.Group.AssignmentScheduleRequests.FilterByCurrentUserWithOn { + /// + /// Provides operations to call the filterByCurrentUser method. + /// + public class FilterByCurrentUserWithOnRequestBuilder { + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// + /// Instantiates a new FilterByCurrentUserWithOnRequestBuilder and sets the default values. + /// + /// Usage: on='{on}' + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public FilterByCurrentUserWithOnRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter, string on = default) { + _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentScheduleRequests/microsoft.graph.filterByCurrentUser(on='{on}'){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"; + var urlTplParams = new Dictionary(pathParameters); + urlTplParams.Add("on", on); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Instantiates a new FilterByCurrentUserWithOnRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public FilterByCurrentUserWithOnRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { + if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentScheduleRequests/microsoft.graph.filterByCurrentUser(on='{on}'){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"; + var urlTplParams = new Dictionary(); + urlTplParams.Add("request-raw-url", rawUrl); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Invoke function filterByCurrentUser + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, FilterByCurrentUserWithOnResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Invoke function filterByCurrentUser + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new FilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Invoke function filterByCurrentUser + /// + public class FilterByCurrentUserWithOnRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Filter items by property values + [QueryParameter("%24filter")] + public string Filter { get; set; } + /// Order items by property values + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } + /// Search items by search phrases + [QueryParameter("%24search")] + public string Search { get; set; } + /// Select properties to be returned + [QueryParameter("%24select")] + public string[] Select { get; set; } + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class FilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public FilterByCurrentUserWithOnRequestBuilderGetQueryParameters QueryParameters { get; set; } = new FilterByCurrentUserWithOnRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new filterByCurrentUserWithOnRequestBuilderGetRequestConfiguration and sets the default values. + /// + public FilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs new file mode 100644 index 00000000000..e83cae49d3d --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs @@ -0,0 +1,40 @@ +using Microsoft.Graph.Beta.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +namespace Microsoft.Graph.Beta.IdentityGovernance.PrivilegedAccess.Group.AssignmentScheduleRequests.FilterByCurrentUserWithOn { + public class FilterByCurrentUserWithOnResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new FilterByCurrentUserWithOnResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new FilterByCurrentUserWithOnResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(PrivilegedAccessGroupAssignmentScheduleRequest.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/ActivatedUsing/ActivatedUsingRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/ActivatedUsing/ActivatedUsingRequestBuilder.cs new file mode 100644 index 00000000000..46ff4ded10a --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/ActivatedUsing/ActivatedUsingRequestBuilder.cs @@ -0,0 +1,112 @@ +using Microsoft.Graph.Beta.Models; +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +namespace Microsoft.Graph.Beta.IdentityGovernance.PrivilegedAccess.Group.AssignmentScheduleRequests.Item.ActivatedUsing { + /// + /// Provides operations to manage the activatedUsing property of the microsoft.graph.privilegedAccessGroupAssignmentScheduleRequest entity. + /// + public class ActivatedUsingRequestBuilder { + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// + /// Instantiates a new ActivatedUsingRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ActivatedUsingRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) { + _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentScheduleRequests/{privilegedAccessGroupAssignmentScheduleRequest%2Did}/activatedUsing{?%24select,%24expand}"; + var urlTplParams = new Dictionary(pathParameters); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Instantiates a new ActivatedUsingRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ActivatedUsingRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { + if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentScheduleRequests/{privilegedAccessGroupAssignmentScheduleRequest%2Did}/activatedUsing{?%24select,%24expand}"; + var urlTplParams = new Dictionary(); + urlTplParams.Add("request-raw-url", rawUrl); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Get activatedUsing from identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, PrivilegedAccessGroupEligibilitySchedule.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Get activatedUsing from identityGovernance + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ActivatedUsingRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get activatedUsing from identityGovernance + /// + public class ActivatedUsingRequestBuilderGetQueryParameters { + /// Expand related entities + [QueryParameter("%24expand")] + public string[] Expand { get; set; } + /// Select properties to be returned + [QueryParameter("%24select")] + public string[] Select { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ActivatedUsingRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ActivatedUsingRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ActivatedUsingRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new activatedUsingRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ActivatedUsingRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/Cancel/CancelRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/Cancel/CancelRequestBuilder.cs new file mode 100644 index 00000000000..64489d3c74f --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/Cancel/CancelRequestBuilder.cs @@ -0,0 +1,96 @@ +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +namespace Microsoft.Graph.Beta.IdentityGovernance.PrivilegedAccess.Group.AssignmentScheduleRequests.Item.Cancel { + /// + /// Provides operations to call the cancel method. + /// + public class CancelRequestBuilder { + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// + /// Instantiates a new CancelRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CancelRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) { + _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentScheduleRequests/{privilegedAccessGroupAssignmentScheduleRequest%2Did}/microsoft.graph.cancel"; + var urlTplParams = new Dictionary(pathParameters); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Instantiates a new CancelRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CancelRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { + if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentScheduleRequests/{privilegedAccessGroupAssignmentScheduleRequest%2Did}/microsoft.graph.cancel"; + var urlTplParams = new Dictionary(); + urlTplParams.Add("request-raw-url", rawUrl); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Invoke action cancel + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + public async Task PostAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken); + } + /// + /// Invoke action cancel + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + public RequestInformation ToPostRequestInformation(Action requestConfiguration = default) { + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new CancelRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CancelRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new cancelRequestBuilderPostRequestConfiguration and sets the default values. + /// + public CancelRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/Group/GroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/Group/GroupRequestBuilder.cs new file mode 100644 index 00000000000..44bfbc0fbb7 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/Group/GroupRequestBuilder.cs @@ -0,0 +1,112 @@ +using Microsoft.Graph.Beta.Models; +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +namespace Microsoft.Graph.Beta.IdentityGovernance.PrivilegedAccess.Group.AssignmentScheduleRequests.Item.Group { + /// + /// Provides operations to manage the group property of the microsoft.graph.privilegedAccessGroupAssignmentScheduleRequest entity. + /// + public class GroupRequestBuilder { + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// + /// Instantiates a new GroupRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public GroupRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) { + _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentScheduleRequests/{privilegedAccessGroupAssignmentScheduleRequest%2Did}/group{?%24select,%24expand}"; + var urlTplParams = new Dictionary(pathParameters); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Instantiates a new GroupRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public GroupRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { + if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentScheduleRequests/{privilegedAccessGroupAssignmentScheduleRequest%2Did}/group{?%24select,%24expand}"; + var urlTplParams = new Dictionary(); + urlTplParams.Add("request-raw-url", rawUrl); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Get group from identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Beta.Models.Group.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Get group from identityGovernance + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new GroupRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get group from identityGovernance + /// + public class GroupRequestBuilderGetQueryParameters { + /// Expand related entities + [QueryParameter("%24expand")] + public string[] Expand { get; set; } + /// Select properties to be returned + [QueryParameter("%24select")] + public string[] Select { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class GroupRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public GroupRequestBuilderGetQueryParameters QueryParameters { get; set; } = new GroupRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new groupRequestBuilderGetRequestConfiguration and sets the default values. + /// + public GroupRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/Principal/PrincipalRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/Principal/PrincipalRequestBuilder.cs new file mode 100644 index 00000000000..ca9898c4925 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/Principal/PrincipalRequestBuilder.cs @@ -0,0 +1,112 @@ +using Microsoft.Graph.Beta.Models; +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +namespace Microsoft.Graph.Beta.IdentityGovernance.PrivilegedAccess.Group.AssignmentScheduleRequests.Item.Principal { + /// + /// Provides operations to manage the principal property of the microsoft.graph.privilegedAccessGroupAssignmentScheduleRequest entity. + /// + public class PrincipalRequestBuilder { + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// + /// Instantiates a new PrincipalRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public PrincipalRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) { + _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentScheduleRequests/{privilegedAccessGroupAssignmentScheduleRequest%2Did}/principal{?%24select,%24expand}"; + var urlTplParams = new Dictionary(pathParameters); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Instantiates a new PrincipalRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public PrincipalRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { + if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentScheduleRequests/{privilegedAccessGroupAssignmentScheduleRequest%2Did}/principal{?%24select,%24expand}"; + var urlTplParams = new Dictionary(); + urlTplParams.Add("request-raw-url", rawUrl); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Get principal from identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DirectoryObject.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Get principal from identityGovernance + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new PrincipalRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get principal from identityGovernance + /// + public class PrincipalRequestBuilderGetQueryParameters { + /// Expand related entities + [QueryParameter("%24expand")] + public string[] Expand { get; set; } + /// Select properties to be returned + [QueryParameter("%24select")] + public string[] Select { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class PrincipalRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public PrincipalRequestBuilderGetQueryParameters QueryParameters { get; set; } = new PrincipalRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new principalRequestBuilderGetRequestConfiguration and sets the default values. + /// + public PrincipalRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilder.cs new file mode 100644 index 00000000000..b5a81504338 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilder.cs @@ -0,0 +1,237 @@ +using Microsoft.Graph.Beta.IdentityGovernance.PrivilegedAccess.Group.AssignmentScheduleRequests.Item.ActivatedUsing; +using Microsoft.Graph.Beta.IdentityGovernance.PrivilegedAccess.Group.AssignmentScheduleRequests.Item.Cancel; +using Microsoft.Graph.Beta.IdentityGovernance.PrivilegedAccess.Group.AssignmentScheduleRequests.Item.Group; +using Microsoft.Graph.Beta.IdentityGovernance.PrivilegedAccess.Group.AssignmentScheduleRequests.Item.Principal; +using Microsoft.Graph.Beta.IdentityGovernance.PrivilegedAccess.Group.AssignmentScheduleRequests.Item.TargetSchedule; +using Microsoft.Graph.Beta.Models; +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +namespace Microsoft.Graph.Beta.IdentityGovernance.PrivilegedAccess.Group.AssignmentScheduleRequests.Item { + /// + /// Provides operations to manage the assignmentScheduleRequests property of the microsoft.graph.privilegedAccessGroup entity. + /// + public class PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilder { + /// Provides operations to manage the activatedUsing property of the microsoft.graph.privilegedAccessGroupAssignmentScheduleRequest entity. + public ActivatedUsingRequestBuilder ActivatedUsing { get => + new ActivatedUsingRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to call the cancel method. + public CancelRequestBuilder Cancel { get => + new CancelRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the group property of the microsoft.graph.privilegedAccessGroupAssignmentScheduleRequest entity. + public Microsoft.Graph.Beta.IdentityGovernance.PrivilegedAccess.Group.AssignmentScheduleRequests.Item.Group.GroupRequestBuilder Group { get => + new Microsoft.Graph.Beta.IdentityGovernance.PrivilegedAccess.Group.AssignmentScheduleRequests.Item.Group.GroupRequestBuilder(PathParameters, RequestAdapter); + } + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// Provides operations to manage the principal property of the microsoft.graph.privilegedAccessGroupAssignmentScheduleRequest entity. + public PrincipalRequestBuilder Principal { get => + new PrincipalRequestBuilder(PathParameters, RequestAdapter); + } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// Provides operations to manage the targetSchedule property of the microsoft.graph.privilegedAccessGroupAssignmentScheduleRequest entity. + public TargetScheduleRequestBuilder TargetSchedule { get => + new TargetScheduleRequestBuilder(PathParameters, RequestAdapter); + } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// + /// Instantiates a new PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) { + _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentScheduleRequests/{privilegedAccessGroupAssignmentScheduleRequest%2Did}{?%24select,%24expand}"; + var urlTplParams = new Dictionary(pathParameters); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Instantiates a new PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { + if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentScheduleRequests/{privilegedAccessGroupAssignmentScheduleRequest%2Did}{?%24select,%24expand}"; + var urlTplParams = new Dictionary(); + urlTplParams.Add("request-raw-url", rawUrl); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Delete navigation property assignmentScheduleRequests for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken); + } + /// + /// Get assignmentScheduleRequests from identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, PrivilegedAccessGroupAssignmentScheduleRequest.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Update the navigation property assignmentScheduleRequests in identityGovernance + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + public async Task PatchAsync(PrivilegedAccessGroupAssignmentScheduleRequest body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, PrivilegedAccessGroupAssignmentScheduleRequest.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Delete navigation property assignmentScheduleRequests for identityGovernance + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get assignmentScheduleRequests from identityGovernance + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update the navigation property assignmentScheduleRequests in identityGovernance + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. + public RequestInformation ToPatchRequestInformation(PrivilegedAccessGroupAssignmentScheduleRequest body, Action requestConfiguration = default) { + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Get assignmentScheduleRequests from identityGovernance + /// + public class PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilderGetQueryParameters { + /// Expand related entities + [QueryParameter("%24expand")] + public string[] Expand { get; set; } + /// Select properties to be returned + [QueryParameter("%24select")] + public string[] Select { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/TargetSchedule/TargetScheduleRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/TargetSchedule/TargetScheduleRequestBuilder.cs new file mode 100644 index 00000000000..b5074017e6d --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/TargetSchedule/TargetScheduleRequestBuilder.cs @@ -0,0 +1,112 @@ +using Microsoft.Graph.Beta.Models; +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +namespace Microsoft.Graph.Beta.IdentityGovernance.PrivilegedAccess.Group.AssignmentScheduleRequests.Item.TargetSchedule { + /// + /// Provides operations to manage the targetSchedule property of the microsoft.graph.privilegedAccessGroupAssignmentScheduleRequest entity. + /// + public class TargetScheduleRequestBuilder { + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// + /// Instantiates a new TargetScheduleRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public TargetScheduleRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) { + _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentScheduleRequests/{privilegedAccessGroupAssignmentScheduleRequest%2Did}/targetSchedule{?%24select,%24expand}"; + var urlTplParams = new Dictionary(pathParameters); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Instantiates a new TargetScheduleRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public TargetScheduleRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { + if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentScheduleRequests/{privilegedAccessGroupAssignmentScheduleRequest%2Did}/targetSchedule{?%24select,%24expand}"; + var urlTplParams = new Dictionary(); + urlTplParams.Add("request-raw-url", rawUrl); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Get targetSchedule from identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, PrivilegedAccessGroupEligibilitySchedule.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Get targetSchedule from identityGovernance + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new TargetScheduleRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get targetSchedule from identityGovernance + /// + public class TargetScheduleRequestBuilderGetQueryParameters { + /// Expand related entities + [QueryParameter("%24expand")] + public string[] Expand { get; set; } + /// Select properties to be returned + [QueryParameter("%24select")] + public string[] Select { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class TargetScheduleRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public TargetScheduleRequestBuilderGetQueryParameters QueryParameters { get; set; } = new TargetScheduleRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new targetScheduleRequestBuilderGetRequestConfiguration and sets the default values. + /// + public TargetScheduleRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/AssignmentSchedulesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/AssignmentSchedulesRequestBuilder.cs new file mode 100644 index 00000000000..1e8b57edcbf --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/AssignmentSchedulesRequestBuilder.cs @@ -0,0 +1,204 @@ +using Microsoft.Graph.Beta.IdentityGovernance.PrivilegedAccess.Group.AssignmentSchedules.Count; +using Microsoft.Graph.Beta.IdentityGovernance.PrivilegedAccess.Group.AssignmentSchedules.FilterByCurrentUserWithOn; +using Microsoft.Graph.Beta.IdentityGovernance.PrivilegedAccess.Group.AssignmentSchedules.Item; +using Microsoft.Graph.Beta.Models; +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +namespace Microsoft.Graph.Beta.IdentityGovernance.PrivilegedAccess.Group.AssignmentSchedules { + /// + /// Provides operations to manage the assignmentSchedules property of the microsoft.graph.privilegedAccessGroup entity. + /// + public class AssignmentSchedulesRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// Provides operations to manage the assignmentSchedules property of the microsoft.graph.privilegedAccessGroup entity. + public PrivilegedAccessGroupAssignmentScheduleItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("privilegedAccessGroupAssignmentSchedule%2Did", position); + return new PrivilegedAccessGroupAssignmentScheduleItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new AssignmentSchedulesRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public AssignmentSchedulesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) { + _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentSchedules{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}"; + var urlTplParams = new Dictionary(pathParameters); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Instantiates a new AssignmentSchedulesRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public AssignmentSchedulesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { + if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentSchedules{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}"; + var urlTplParams = new Dictionary(); + urlTplParams.Add("request-raw-url", rawUrl); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Provides operations to call the filterByCurrentUser method. + /// + /// Usage: on='{on}' + public FilterByCurrentUserWithOnRequestBuilder FilterByCurrentUserWithOn(string on) { + if(string.IsNullOrEmpty(on)) throw new ArgumentNullException(nameof(on)); + return new FilterByCurrentUserWithOnRequestBuilder(PathParameters, RequestAdapter, on); + } + /// + /// Get assignmentSchedules from identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, PrivilegedAccessGroupAssignmentScheduleCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Create new navigation property to assignmentSchedules for identityGovernance + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + public async Task PostAsync(PrivilegedAccessGroupAssignmentSchedule body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, PrivilegedAccessGroupAssignmentSchedule.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Get assignmentSchedules from identityGovernance + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new AssignmentSchedulesRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Create new navigation property to assignmentSchedules for identityGovernance + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. + public RequestInformation ToPostRequestInformation(PrivilegedAccessGroupAssignmentSchedule body, Action requestConfiguration = default) { + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new AssignmentSchedulesRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get assignmentSchedules from identityGovernance + /// + public class AssignmentSchedulesRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities + [QueryParameter("%24expand")] + public string[] Expand { get; set; } + /// Filter items by property values + [QueryParameter("%24filter")] + public string Filter { get; set; } + /// Order items by property values + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } + /// Search items by search phrases + [QueryParameter("%24search")] + public string Search { get; set; } + /// Select properties to be returned + [QueryParameter("%24select")] + public string[] Select { get; set; } + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class AssignmentSchedulesRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public AssignmentSchedulesRequestBuilderGetQueryParameters QueryParameters { get; set; } = new AssignmentSchedulesRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new assignmentSchedulesRequestBuilderGetRequestConfiguration and sets the default values. + /// + public AssignmentSchedulesRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class AssignmentSchedulesRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new assignmentSchedulesRequestBuilderPostRequestConfiguration and sets the default values. + /// + public AssignmentSchedulesRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..43452c09122 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Count/CountRequestBuilder.cs @@ -0,0 +1,97 @@ +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +namespace Microsoft.Graph.Beta.IdentityGovernance.PrivilegedAccess.Group.AssignmentSchedules.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder { + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) { + _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentSchedules/$count"; + var urlTplParams = new Dictionary(pathParameters); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { + if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentSchedules/$count"; + var urlTplParams = new Dictionary(); + urlTplParams.Add("request-raw-url", rawUrl); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs new file mode 100644 index 00000000000..8444f2fc61c --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs @@ -0,0 +1,128 @@ +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +namespace Microsoft.Graph.Beta.IdentityGovernance.PrivilegedAccess.Group.AssignmentSchedules.FilterByCurrentUserWithOn { + /// + /// Provides operations to call the filterByCurrentUser method. + /// + public class FilterByCurrentUserWithOnRequestBuilder { + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// + /// Instantiates a new FilterByCurrentUserWithOnRequestBuilder and sets the default values. + /// + /// Usage: on='{on}' + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public FilterByCurrentUserWithOnRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter, string on = default) { + _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentSchedules/microsoft.graph.filterByCurrentUser(on='{on}'){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"; + var urlTplParams = new Dictionary(pathParameters); + urlTplParams.Add("on", on); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Instantiates a new FilterByCurrentUserWithOnRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public FilterByCurrentUserWithOnRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { + if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentSchedules/microsoft.graph.filterByCurrentUser(on='{on}'){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"; + var urlTplParams = new Dictionary(); + urlTplParams.Add("request-raw-url", rawUrl); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Invoke function filterByCurrentUser + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, FilterByCurrentUserWithOnResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Invoke function filterByCurrentUser + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new FilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Invoke function filterByCurrentUser + /// + public class FilterByCurrentUserWithOnRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Filter items by property values + [QueryParameter("%24filter")] + public string Filter { get; set; } + /// Order items by property values + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } + /// Search items by search phrases + [QueryParameter("%24search")] + public string Search { get; set; } + /// Select properties to be returned + [QueryParameter("%24select")] + public string[] Select { get; set; } + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class FilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public FilterByCurrentUserWithOnRequestBuilderGetQueryParameters QueryParameters { get; set; } = new FilterByCurrentUserWithOnRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new filterByCurrentUserWithOnRequestBuilderGetRequestConfiguration and sets the default values. + /// + public FilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs new file mode 100644 index 00000000000..8ce78f6cf4d --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs @@ -0,0 +1,40 @@ +using Microsoft.Graph.Beta.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +namespace Microsoft.Graph.Beta.IdentityGovernance.PrivilegedAccess.Group.AssignmentSchedules.FilterByCurrentUserWithOn { + public class FilterByCurrentUserWithOnResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new FilterByCurrentUserWithOnResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new FilterByCurrentUserWithOnResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(PrivilegedAccessGroupAssignmentSchedule.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/ActivatedUsing/ActivatedUsingRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/ActivatedUsing/ActivatedUsingRequestBuilder.cs new file mode 100644 index 00000000000..de31ed58325 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/ActivatedUsing/ActivatedUsingRequestBuilder.cs @@ -0,0 +1,112 @@ +using Microsoft.Graph.Beta.Models; +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +namespace Microsoft.Graph.Beta.IdentityGovernance.PrivilegedAccess.Group.AssignmentSchedules.Item.ActivatedUsing { + /// + /// Provides operations to manage the activatedUsing property of the microsoft.graph.privilegedAccessGroupAssignmentSchedule entity. + /// + public class ActivatedUsingRequestBuilder { + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// + /// Instantiates a new ActivatedUsingRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ActivatedUsingRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) { + _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentSchedules/{privilegedAccessGroupAssignmentSchedule%2Did}/activatedUsing{?%24select,%24expand}"; + var urlTplParams = new Dictionary(pathParameters); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Instantiates a new ActivatedUsingRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ActivatedUsingRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { + if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentSchedules/{privilegedAccessGroupAssignmentSchedule%2Did}/activatedUsing{?%24select,%24expand}"; + var urlTplParams = new Dictionary(); + urlTplParams.Add("request-raw-url", rawUrl); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Get activatedUsing from identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, PrivilegedAccessGroupEligibilitySchedule.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Get activatedUsing from identityGovernance + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ActivatedUsingRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get activatedUsing from identityGovernance + /// + public class ActivatedUsingRequestBuilderGetQueryParameters { + /// Expand related entities + [QueryParameter("%24expand")] + public string[] Expand { get; set; } + /// Select properties to be returned + [QueryParameter("%24select")] + public string[] Select { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ActivatedUsingRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ActivatedUsingRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ActivatedUsingRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new activatedUsingRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ActivatedUsingRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/Group/GroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/Group/GroupRequestBuilder.cs new file mode 100644 index 00000000000..0980d699d1e --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/Group/GroupRequestBuilder.cs @@ -0,0 +1,112 @@ +using Microsoft.Graph.Beta.Models; +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +namespace Microsoft.Graph.Beta.IdentityGovernance.PrivilegedAccess.Group.AssignmentSchedules.Item.Group { + /// + /// Provides operations to manage the group property of the microsoft.graph.privilegedAccessGroupAssignmentSchedule entity. + /// + public class GroupRequestBuilder { + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// + /// Instantiates a new GroupRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public GroupRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) { + _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentSchedules/{privilegedAccessGroupAssignmentSchedule%2Did}/group{?%24select,%24expand}"; + var urlTplParams = new Dictionary(pathParameters); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Instantiates a new GroupRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public GroupRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { + if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentSchedules/{privilegedAccessGroupAssignmentSchedule%2Did}/group{?%24select,%24expand}"; + var urlTplParams = new Dictionary(); + urlTplParams.Add("request-raw-url", rawUrl); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Get group from identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Beta.Models.Group.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Get group from identityGovernance + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new GroupRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get group from identityGovernance + /// + public class GroupRequestBuilderGetQueryParameters { + /// Expand related entities + [QueryParameter("%24expand")] + public string[] Expand { get; set; } + /// Select properties to be returned + [QueryParameter("%24select")] + public string[] Select { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class GroupRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public GroupRequestBuilderGetQueryParameters QueryParameters { get; set; } = new GroupRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new groupRequestBuilderGetRequestConfiguration and sets the default values. + /// + public GroupRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/Principal/PrincipalRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/Principal/PrincipalRequestBuilder.cs new file mode 100644 index 00000000000..64c860844ee --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/Principal/PrincipalRequestBuilder.cs @@ -0,0 +1,112 @@ +using Microsoft.Graph.Beta.Models; +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +namespace Microsoft.Graph.Beta.IdentityGovernance.PrivilegedAccess.Group.AssignmentSchedules.Item.Principal { + /// + /// Provides operations to manage the principal property of the microsoft.graph.privilegedAccessGroupAssignmentSchedule entity. + /// + public class PrincipalRequestBuilder { + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// + /// Instantiates a new PrincipalRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public PrincipalRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) { + _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentSchedules/{privilegedAccessGroupAssignmentSchedule%2Did}/principal{?%24select,%24expand}"; + var urlTplParams = new Dictionary(pathParameters); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Instantiates a new PrincipalRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public PrincipalRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { + if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentSchedules/{privilegedAccessGroupAssignmentSchedule%2Did}/principal{?%24select,%24expand}"; + var urlTplParams = new Dictionary(); + urlTplParams.Add("request-raw-url", rawUrl); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Get principal from identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DirectoryObject.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Get principal from identityGovernance + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new PrincipalRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get principal from identityGovernance + /// + public class PrincipalRequestBuilderGetQueryParameters { + /// Expand related entities + [QueryParameter("%24expand")] + public string[] Expand { get; set; } + /// Select properties to be returned + [QueryParameter("%24select")] + public string[] Select { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class PrincipalRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public PrincipalRequestBuilderGetQueryParameters QueryParameters { get; set; } = new PrincipalRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new principalRequestBuilderGetRequestConfiguration and sets the default values. + /// + public PrincipalRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/PrivilegedAccessGroupAssignmentScheduleItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/PrivilegedAccessGroupAssignmentScheduleItemRequestBuilder.cs new file mode 100644 index 00000000000..ce379046f85 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/PrivilegedAccessGroupAssignmentScheduleItemRequestBuilder.cs @@ -0,0 +1,227 @@ +using Microsoft.Graph.Beta.IdentityGovernance.PrivilegedAccess.Group.AssignmentSchedules.Item.ActivatedUsing; +using Microsoft.Graph.Beta.IdentityGovernance.PrivilegedAccess.Group.AssignmentSchedules.Item.Group; +using Microsoft.Graph.Beta.IdentityGovernance.PrivilegedAccess.Group.AssignmentSchedules.Item.Principal; +using Microsoft.Graph.Beta.Models; +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +namespace Microsoft.Graph.Beta.IdentityGovernance.PrivilegedAccess.Group.AssignmentSchedules.Item { + /// + /// Provides operations to manage the assignmentSchedules property of the microsoft.graph.privilegedAccessGroup entity. + /// + public class PrivilegedAccessGroupAssignmentScheduleItemRequestBuilder { + /// Provides operations to manage the activatedUsing property of the microsoft.graph.privilegedAccessGroupAssignmentSchedule entity. + public ActivatedUsingRequestBuilder ActivatedUsing { get => + new ActivatedUsingRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the group property of the microsoft.graph.privilegedAccessGroupAssignmentSchedule entity. + public Microsoft.Graph.Beta.IdentityGovernance.PrivilegedAccess.Group.AssignmentSchedules.Item.Group.GroupRequestBuilder Group { get => + new Microsoft.Graph.Beta.IdentityGovernance.PrivilegedAccess.Group.AssignmentSchedules.Item.Group.GroupRequestBuilder(PathParameters, RequestAdapter); + } + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// Provides operations to manage the principal property of the microsoft.graph.privilegedAccessGroupAssignmentSchedule entity. + public PrincipalRequestBuilder Principal { get => + new PrincipalRequestBuilder(PathParameters, RequestAdapter); + } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// + /// Instantiates a new PrivilegedAccessGroupAssignmentScheduleItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public PrivilegedAccessGroupAssignmentScheduleItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) { + _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentSchedules/{privilegedAccessGroupAssignmentSchedule%2Did}{?%24select,%24expand}"; + var urlTplParams = new Dictionary(pathParameters); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Instantiates a new PrivilegedAccessGroupAssignmentScheduleItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public PrivilegedAccessGroupAssignmentScheduleItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { + if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentSchedules/{privilegedAccessGroupAssignmentSchedule%2Did}{?%24select,%24expand}"; + var urlTplParams = new Dictionary(); + urlTplParams.Add("request-raw-url", rawUrl); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Delete navigation property assignmentSchedules for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken); + } + /// + /// Get assignmentSchedules from identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, PrivilegedAccessGroupAssignmentSchedule.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Update the navigation property assignmentSchedules in identityGovernance + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + public async Task PatchAsync(PrivilegedAccessGroupAssignmentSchedule body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, PrivilegedAccessGroupAssignmentSchedule.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Delete navigation property assignmentSchedules for identityGovernance + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new PrivilegedAccessGroupAssignmentScheduleItemRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get assignmentSchedules from identityGovernance + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new PrivilegedAccessGroupAssignmentScheduleItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update the navigation property assignmentSchedules in identityGovernance + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. + public RequestInformation ToPatchRequestInformation(PrivilegedAccessGroupAssignmentSchedule body, Action requestConfiguration = default) { + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new PrivilegedAccessGroupAssignmentScheduleItemRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class PrivilegedAccessGroupAssignmentScheduleItemRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new PrivilegedAccessGroupAssignmentScheduleItemRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public PrivilegedAccessGroupAssignmentScheduleItemRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Get assignmentSchedules from identityGovernance + /// + public class PrivilegedAccessGroupAssignmentScheduleItemRequestBuilderGetQueryParameters { + /// Expand related entities + [QueryParameter("%24expand")] + public string[] Expand { get; set; } + /// Select properties to be returned + [QueryParameter("%24select")] + public string[] Select { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class PrivilegedAccessGroupAssignmentScheduleItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public PrivilegedAccessGroupAssignmentScheduleItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new PrivilegedAccessGroupAssignmentScheduleItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new PrivilegedAccessGroupAssignmentScheduleItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public PrivilegedAccessGroupAssignmentScheduleItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class PrivilegedAccessGroupAssignmentScheduleItemRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new PrivilegedAccessGroupAssignmentScheduleItemRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public PrivilegedAccessGroupAssignmentScheduleItemRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..513bc917c5d --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Count/CountRequestBuilder.cs @@ -0,0 +1,97 @@ +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +namespace Microsoft.Graph.Beta.IdentityGovernance.PrivilegedAccess.Group.EligibilityScheduleInstances.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder { + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) { + _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/identityGovernance/privilegedAccess/group/eligibilityScheduleInstances/$count"; + var urlTplParams = new Dictionary(pathParameters); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { + if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/identityGovernance/privilegedAccess/group/eligibilityScheduleInstances/$count"; + var urlTplParams = new Dictionary(); + urlTplParams.Add("request-raw-url", rawUrl); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/EligibilityScheduleInstancesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/EligibilityScheduleInstancesRequestBuilder.cs new file mode 100644 index 00000000000..6b976ebb197 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/EligibilityScheduleInstancesRequestBuilder.cs @@ -0,0 +1,204 @@ +using Microsoft.Graph.Beta.IdentityGovernance.PrivilegedAccess.Group.EligibilityScheduleInstances.Count; +using Microsoft.Graph.Beta.IdentityGovernance.PrivilegedAccess.Group.EligibilityScheduleInstances.FilterByCurrentUserWithOn; +using Microsoft.Graph.Beta.IdentityGovernance.PrivilegedAccess.Group.EligibilityScheduleInstances.Item; +using Microsoft.Graph.Beta.Models; +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +namespace Microsoft.Graph.Beta.IdentityGovernance.PrivilegedAccess.Group.EligibilityScheduleInstances { + /// + /// Provides operations to manage the eligibilityScheduleInstances property of the microsoft.graph.privilegedAccessGroup entity. + /// + public class EligibilityScheduleInstancesRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// Provides operations to manage the eligibilityScheduleInstances property of the microsoft.graph.privilegedAccessGroup entity. + public PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("privilegedAccessGroupEligibilityScheduleInstance%2Did", position); + return new PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new EligibilityScheduleInstancesRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public EligibilityScheduleInstancesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) { + _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/identityGovernance/privilegedAccess/group/eligibilityScheduleInstances{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}"; + var urlTplParams = new Dictionary(pathParameters); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Instantiates a new EligibilityScheduleInstancesRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public EligibilityScheduleInstancesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { + if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/identityGovernance/privilegedAccess/group/eligibilityScheduleInstances{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}"; + var urlTplParams = new Dictionary(); + urlTplParams.Add("request-raw-url", rawUrl); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Provides operations to call the filterByCurrentUser method. + /// + /// Usage: on='{on}' + public FilterByCurrentUserWithOnRequestBuilder FilterByCurrentUserWithOn(string on) { + if(string.IsNullOrEmpty(on)) throw new ArgumentNullException(nameof(on)); + return new FilterByCurrentUserWithOnRequestBuilder(PathParameters, RequestAdapter, on); + } + /// + /// Get eligibilityScheduleInstances from identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, PrivilegedAccessGroupEligibilityScheduleInstanceCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Create new navigation property to eligibilityScheduleInstances for identityGovernance + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + public async Task PostAsync(PrivilegedAccessGroupEligibilityScheduleInstance body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, PrivilegedAccessGroupEligibilityScheduleInstance.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Get eligibilityScheduleInstances from identityGovernance + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new EligibilityScheduleInstancesRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Create new navigation property to eligibilityScheduleInstances for identityGovernance + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. + public RequestInformation ToPostRequestInformation(PrivilegedAccessGroupEligibilityScheduleInstance body, Action requestConfiguration = default) { + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new EligibilityScheduleInstancesRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get eligibilityScheduleInstances from identityGovernance + /// + public class EligibilityScheduleInstancesRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities + [QueryParameter("%24expand")] + public string[] Expand { get; set; } + /// Filter items by property values + [QueryParameter("%24filter")] + public string Filter { get; set; } + /// Order items by property values + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } + /// Search items by search phrases + [QueryParameter("%24search")] + public string Search { get; set; } + /// Select properties to be returned + [QueryParameter("%24select")] + public string[] Select { get; set; } + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class EligibilityScheduleInstancesRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public EligibilityScheduleInstancesRequestBuilderGetQueryParameters QueryParameters { get; set; } = new EligibilityScheduleInstancesRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new eligibilityScheduleInstancesRequestBuilderGetRequestConfiguration and sets the default values. + /// + public EligibilityScheduleInstancesRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class EligibilityScheduleInstancesRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new eligibilityScheduleInstancesRequestBuilderPostRequestConfiguration and sets the default values. + /// + public EligibilityScheduleInstancesRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs new file mode 100644 index 00000000000..e7ae54dbdfe --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs @@ -0,0 +1,128 @@ +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +namespace Microsoft.Graph.Beta.IdentityGovernance.PrivilegedAccess.Group.EligibilityScheduleInstances.FilterByCurrentUserWithOn { + /// + /// Provides operations to call the filterByCurrentUser method. + /// + public class FilterByCurrentUserWithOnRequestBuilder { + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// + /// Instantiates a new FilterByCurrentUserWithOnRequestBuilder and sets the default values. + /// + /// Usage: on='{on}' + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public FilterByCurrentUserWithOnRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter, string on = default) { + _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/identityGovernance/privilegedAccess/group/eligibilityScheduleInstances/microsoft.graph.filterByCurrentUser(on='{on}'){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"; + var urlTplParams = new Dictionary(pathParameters); + urlTplParams.Add("on", on); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Instantiates a new FilterByCurrentUserWithOnRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public FilterByCurrentUserWithOnRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { + if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/identityGovernance/privilegedAccess/group/eligibilityScheduleInstances/microsoft.graph.filterByCurrentUser(on='{on}'){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"; + var urlTplParams = new Dictionary(); + urlTplParams.Add("request-raw-url", rawUrl); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Invoke function filterByCurrentUser + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, FilterByCurrentUserWithOnResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Invoke function filterByCurrentUser + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new FilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Invoke function filterByCurrentUser + /// + public class FilterByCurrentUserWithOnRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Filter items by property values + [QueryParameter("%24filter")] + public string Filter { get; set; } + /// Order items by property values + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } + /// Search items by search phrases + [QueryParameter("%24search")] + public string Search { get; set; } + /// Select properties to be returned + [QueryParameter("%24select")] + public string[] Select { get; set; } + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class FilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public FilterByCurrentUserWithOnRequestBuilderGetQueryParameters QueryParameters { get; set; } = new FilterByCurrentUserWithOnRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new filterByCurrentUserWithOnRequestBuilderGetRequestConfiguration and sets the default values. + /// + public FilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs new file mode 100644 index 00000000000..d129483d144 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs @@ -0,0 +1,40 @@ +using Microsoft.Graph.Beta.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +namespace Microsoft.Graph.Beta.IdentityGovernance.PrivilegedAccess.Group.EligibilityScheduleInstances.FilterByCurrentUserWithOn { + public class FilterByCurrentUserWithOnResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new FilterByCurrentUserWithOnResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new FilterByCurrentUserWithOnResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(PrivilegedAccessGroupEligibilityScheduleInstance.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/Group/GroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/Group/GroupRequestBuilder.cs new file mode 100644 index 00000000000..fbe4cf1df18 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/Group/GroupRequestBuilder.cs @@ -0,0 +1,112 @@ +using Microsoft.Graph.Beta.Models; +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +namespace Microsoft.Graph.Beta.IdentityGovernance.PrivilegedAccess.Group.EligibilityScheduleInstances.Item.Group { + /// + /// Provides operations to manage the group property of the microsoft.graph.privilegedAccessGroupEligibilityScheduleInstance entity. + /// + public class GroupRequestBuilder { + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// + /// Instantiates a new GroupRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public GroupRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) { + _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/identityGovernance/privilegedAccess/group/eligibilityScheduleInstances/{privilegedAccessGroupEligibilityScheduleInstance%2Did}/group{?%24select,%24expand}"; + var urlTplParams = new Dictionary(pathParameters); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Instantiates a new GroupRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public GroupRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { + if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/identityGovernance/privilegedAccess/group/eligibilityScheduleInstances/{privilegedAccessGroupEligibilityScheduleInstance%2Did}/group{?%24select,%24expand}"; + var urlTplParams = new Dictionary(); + urlTplParams.Add("request-raw-url", rawUrl); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Get group from identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Beta.Models.Group.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Get group from identityGovernance + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new GroupRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get group from identityGovernance + /// + public class GroupRequestBuilderGetQueryParameters { + /// Expand related entities + [QueryParameter("%24expand")] + public string[] Expand { get; set; } + /// Select properties to be returned + [QueryParameter("%24select")] + public string[] Select { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class GroupRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public GroupRequestBuilderGetQueryParameters QueryParameters { get; set; } = new GroupRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new groupRequestBuilderGetRequestConfiguration and sets the default values. + /// + public GroupRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/Principal/PrincipalRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/Principal/PrincipalRequestBuilder.cs new file mode 100644 index 00000000000..d5b3ce96063 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/Principal/PrincipalRequestBuilder.cs @@ -0,0 +1,112 @@ +using Microsoft.Graph.Beta.Models; +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +namespace Microsoft.Graph.Beta.IdentityGovernance.PrivilegedAccess.Group.EligibilityScheduleInstances.Item.Principal { + /// + /// Provides operations to manage the principal property of the microsoft.graph.privilegedAccessGroupEligibilityScheduleInstance entity. + /// + public class PrincipalRequestBuilder { + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// + /// Instantiates a new PrincipalRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public PrincipalRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) { + _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/identityGovernance/privilegedAccess/group/eligibilityScheduleInstances/{privilegedAccessGroupEligibilityScheduleInstance%2Did}/principal{?%24select,%24expand}"; + var urlTplParams = new Dictionary(pathParameters); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Instantiates a new PrincipalRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public PrincipalRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { + if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/identityGovernance/privilegedAccess/group/eligibilityScheduleInstances/{privilegedAccessGroupEligibilityScheduleInstance%2Did}/principal{?%24select,%24expand}"; + var urlTplParams = new Dictionary(); + urlTplParams.Add("request-raw-url", rawUrl); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Get principal from identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DirectoryObject.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Get principal from identityGovernance + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new PrincipalRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get principal from identityGovernance + /// + public class PrincipalRequestBuilderGetQueryParameters { + /// Expand related entities + [QueryParameter("%24expand")] + public string[] Expand { get; set; } + /// Select properties to be returned + [QueryParameter("%24select")] + public string[] Select { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class PrincipalRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public PrincipalRequestBuilderGetQueryParameters QueryParameters { get; set; } = new PrincipalRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new principalRequestBuilderGetRequestConfiguration and sets the default values. + /// + public PrincipalRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilder.cs new file mode 100644 index 00000000000..e0956912b22 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilder.cs @@ -0,0 +1,222 @@ +using Microsoft.Graph.Beta.IdentityGovernance.PrivilegedAccess.Group.EligibilityScheduleInstances.Item.Group; +using Microsoft.Graph.Beta.IdentityGovernance.PrivilegedAccess.Group.EligibilityScheduleInstances.Item.Principal; +using Microsoft.Graph.Beta.Models; +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +namespace Microsoft.Graph.Beta.IdentityGovernance.PrivilegedAccess.Group.EligibilityScheduleInstances.Item { + /// + /// Provides operations to manage the eligibilityScheduleInstances property of the microsoft.graph.privilegedAccessGroup entity. + /// + public class PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilder { + /// Provides operations to manage the group property of the microsoft.graph.privilegedAccessGroupEligibilityScheduleInstance entity. + public Microsoft.Graph.Beta.IdentityGovernance.PrivilegedAccess.Group.EligibilityScheduleInstances.Item.Group.GroupRequestBuilder Group { get => + new Microsoft.Graph.Beta.IdentityGovernance.PrivilegedAccess.Group.EligibilityScheduleInstances.Item.Group.GroupRequestBuilder(PathParameters, RequestAdapter); + } + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// Provides operations to manage the principal property of the microsoft.graph.privilegedAccessGroupEligibilityScheduleInstance entity. + public PrincipalRequestBuilder Principal { get => + new PrincipalRequestBuilder(PathParameters, RequestAdapter); + } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// + /// Instantiates a new PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) { + _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/identityGovernance/privilegedAccess/group/eligibilityScheduleInstances/{privilegedAccessGroupEligibilityScheduleInstance%2Did}{?%24select,%24expand}"; + var urlTplParams = new Dictionary(pathParameters); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Instantiates a new PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { + if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/identityGovernance/privilegedAccess/group/eligibilityScheduleInstances/{privilegedAccessGroupEligibilityScheduleInstance%2Did}{?%24select,%24expand}"; + var urlTplParams = new Dictionary(); + urlTplParams.Add("request-raw-url", rawUrl); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Delete navigation property eligibilityScheduleInstances for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken); + } + /// + /// Get eligibilityScheduleInstances from identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, PrivilegedAccessGroupEligibilityScheduleInstance.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Update the navigation property eligibilityScheduleInstances in identityGovernance + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + public async Task PatchAsync(PrivilegedAccessGroupEligibilityScheduleInstance body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, PrivilegedAccessGroupEligibilityScheduleInstance.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Delete navigation property eligibilityScheduleInstances for identityGovernance + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get eligibilityScheduleInstances from identityGovernance + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update the navigation property eligibilityScheduleInstances in identityGovernance + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. + public RequestInformation ToPatchRequestInformation(PrivilegedAccessGroupEligibilityScheduleInstance body, Action requestConfiguration = default) { + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Get eligibilityScheduleInstances from identityGovernance + /// + public class PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilderGetQueryParameters { + /// Expand related entities + [QueryParameter("%24expand")] + public string[] Expand { get; set; } + /// Select properties to be returned + [QueryParameter("%24select")] + public string[] Select { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..d0b60402816 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Count/CountRequestBuilder.cs @@ -0,0 +1,97 @@ +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +namespace Microsoft.Graph.Beta.IdentityGovernance.PrivilegedAccess.Group.EligibilityScheduleRequests.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder { + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) { + _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/identityGovernance/privilegedAccess/group/eligibilityScheduleRequests/$count"; + var urlTplParams = new Dictionary(pathParameters); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { + if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/identityGovernance/privilegedAccess/group/eligibilityScheduleRequests/$count"; + var urlTplParams = new Dictionary(); + urlTplParams.Add("request-raw-url", rawUrl); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/EligibilityScheduleRequestsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/EligibilityScheduleRequestsRequestBuilder.cs new file mode 100644 index 00000000000..c5b9bbe97f4 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/EligibilityScheduleRequestsRequestBuilder.cs @@ -0,0 +1,204 @@ +using Microsoft.Graph.Beta.IdentityGovernance.PrivilegedAccess.Group.EligibilityScheduleRequests.Count; +using Microsoft.Graph.Beta.IdentityGovernance.PrivilegedAccess.Group.EligibilityScheduleRequests.FilterByCurrentUserWithOn; +using Microsoft.Graph.Beta.IdentityGovernance.PrivilegedAccess.Group.EligibilityScheduleRequests.Item; +using Microsoft.Graph.Beta.Models; +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +namespace Microsoft.Graph.Beta.IdentityGovernance.PrivilegedAccess.Group.EligibilityScheduleRequests { + /// + /// Provides operations to manage the eligibilityScheduleRequests property of the microsoft.graph.privilegedAccessGroup entity. + /// + public class EligibilityScheduleRequestsRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// Provides operations to manage the eligibilityScheduleRequests property of the microsoft.graph.privilegedAccessGroup entity. + public PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("privilegedAccessGroupEligibilityScheduleRequest%2Did", position); + return new PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new EligibilityScheduleRequestsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public EligibilityScheduleRequestsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) { + _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/identityGovernance/privilegedAccess/group/eligibilityScheduleRequests{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}"; + var urlTplParams = new Dictionary(pathParameters); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Instantiates a new EligibilityScheduleRequestsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public EligibilityScheduleRequestsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { + if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/identityGovernance/privilegedAccess/group/eligibilityScheduleRequests{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}"; + var urlTplParams = new Dictionary(); + urlTplParams.Add("request-raw-url", rawUrl); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Provides operations to call the filterByCurrentUser method. + /// + /// Usage: on='{on}' + public FilterByCurrentUserWithOnRequestBuilder FilterByCurrentUserWithOn(string on) { + if(string.IsNullOrEmpty(on)) throw new ArgumentNullException(nameof(on)); + return new FilterByCurrentUserWithOnRequestBuilder(PathParameters, RequestAdapter, on); + } + /// + /// Get eligibilityScheduleRequests from identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, PrivilegedAccessGroupEligibilityScheduleRequestCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Create new navigation property to eligibilityScheduleRequests for identityGovernance + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + public async Task PostAsync(PrivilegedAccessGroupEligibilityScheduleRequest body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, PrivilegedAccessGroupEligibilityScheduleRequest.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Get eligibilityScheduleRequests from identityGovernance + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new EligibilityScheduleRequestsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Create new navigation property to eligibilityScheduleRequests for identityGovernance + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. + public RequestInformation ToPostRequestInformation(PrivilegedAccessGroupEligibilityScheduleRequest body, Action requestConfiguration = default) { + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new EligibilityScheduleRequestsRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get eligibilityScheduleRequests from identityGovernance + /// + public class EligibilityScheduleRequestsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities + [QueryParameter("%24expand")] + public string[] Expand { get; set; } + /// Filter items by property values + [QueryParameter("%24filter")] + public string Filter { get; set; } + /// Order items by property values + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } + /// Search items by search phrases + [QueryParameter("%24search")] + public string Search { get; set; } + /// Select properties to be returned + [QueryParameter("%24select")] + public string[] Select { get; set; } + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class EligibilityScheduleRequestsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public EligibilityScheduleRequestsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new EligibilityScheduleRequestsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new eligibilityScheduleRequestsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public EligibilityScheduleRequestsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class EligibilityScheduleRequestsRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new eligibilityScheduleRequestsRequestBuilderPostRequestConfiguration and sets the default values. + /// + public EligibilityScheduleRequestsRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs new file mode 100644 index 00000000000..32853ed2413 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs @@ -0,0 +1,128 @@ +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +namespace Microsoft.Graph.Beta.IdentityGovernance.PrivilegedAccess.Group.EligibilityScheduleRequests.FilterByCurrentUserWithOn { + /// + /// Provides operations to call the filterByCurrentUser method. + /// + public class FilterByCurrentUserWithOnRequestBuilder { + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// + /// Instantiates a new FilterByCurrentUserWithOnRequestBuilder and sets the default values. + /// + /// Usage: on='{on}' + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public FilterByCurrentUserWithOnRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter, string on = default) { + _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/identityGovernance/privilegedAccess/group/eligibilityScheduleRequests/microsoft.graph.filterByCurrentUser(on='{on}'){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"; + var urlTplParams = new Dictionary(pathParameters); + urlTplParams.Add("on", on); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Instantiates a new FilterByCurrentUserWithOnRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public FilterByCurrentUserWithOnRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { + if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/identityGovernance/privilegedAccess/group/eligibilityScheduleRequests/microsoft.graph.filterByCurrentUser(on='{on}'){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"; + var urlTplParams = new Dictionary(); + urlTplParams.Add("request-raw-url", rawUrl); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Invoke function filterByCurrentUser + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, FilterByCurrentUserWithOnResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Invoke function filterByCurrentUser + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new FilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Invoke function filterByCurrentUser + /// + public class FilterByCurrentUserWithOnRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Filter items by property values + [QueryParameter("%24filter")] + public string Filter { get; set; } + /// Order items by property values + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } + /// Search items by search phrases + [QueryParameter("%24search")] + public string Search { get; set; } + /// Select properties to be returned + [QueryParameter("%24select")] + public string[] Select { get; set; } + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class FilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public FilterByCurrentUserWithOnRequestBuilderGetQueryParameters QueryParameters { get; set; } = new FilterByCurrentUserWithOnRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new filterByCurrentUserWithOnRequestBuilderGetRequestConfiguration and sets the default values. + /// + public FilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs new file mode 100644 index 00000000000..07c5f86e0a0 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs @@ -0,0 +1,40 @@ +using Microsoft.Graph.Beta.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +namespace Microsoft.Graph.Beta.IdentityGovernance.PrivilegedAccess.Group.EligibilityScheduleRequests.FilterByCurrentUserWithOn { + public class FilterByCurrentUserWithOnResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new FilterByCurrentUserWithOnResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new FilterByCurrentUserWithOnResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(PrivilegedAccessGroupEligibilityScheduleRequest.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/Cancel/CancelRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/Cancel/CancelRequestBuilder.cs new file mode 100644 index 00000000000..069c75223a3 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/Cancel/CancelRequestBuilder.cs @@ -0,0 +1,96 @@ +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +namespace Microsoft.Graph.Beta.IdentityGovernance.PrivilegedAccess.Group.EligibilityScheduleRequests.Item.Cancel { + /// + /// Provides operations to call the cancel method. + /// + public class CancelRequestBuilder { + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// + /// Instantiates a new CancelRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CancelRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) { + _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/identityGovernance/privilegedAccess/group/eligibilityScheduleRequests/{privilegedAccessGroupEligibilityScheduleRequest%2Did}/microsoft.graph.cancel"; + var urlTplParams = new Dictionary(pathParameters); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Instantiates a new CancelRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CancelRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { + if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/identityGovernance/privilegedAccess/group/eligibilityScheduleRequests/{privilegedAccessGroupEligibilityScheduleRequest%2Did}/microsoft.graph.cancel"; + var urlTplParams = new Dictionary(); + urlTplParams.Add("request-raw-url", rawUrl); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Invoke action cancel + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + public async Task PostAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken); + } + /// + /// Invoke action cancel + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + public RequestInformation ToPostRequestInformation(Action requestConfiguration = default) { + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new CancelRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CancelRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new cancelRequestBuilderPostRequestConfiguration and sets the default values. + /// + public CancelRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/Group/GroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/Group/GroupRequestBuilder.cs new file mode 100644 index 00000000000..270bc9b3fcc --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/Group/GroupRequestBuilder.cs @@ -0,0 +1,112 @@ +using Microsoft.Graph.Beta.Models; +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +namespace Microsoft.Graph.Beta.IdentityGovernance.PrivilegedAccess.Group.EligibilityScheduleRequests.Item.Group { + /// + /// Provides operations to manage the group property of the microsoft.graph.privilegedAccessGroupEligibilityScheduleRequest entity. + /// + public class GroupRequestBuilder { + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// + /// Instantiates a new GroupRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public GroupRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) { + _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/identityGovernance/privilegedAccess/group/eligibilityScheduleRequests/{privilegedAccessGroupEligibilityScheduleRequest%2Did}/group{?%24select,%24expand}"; + var urlTplParams = new Dictionary(pathParameters); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Instantiates a new GroupRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public GroupRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { + if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/identityGovernance/privilegedAccess/group/eligibilityScheduleRequests/{privilegedAccessGroupEligibilityScheduleRequest%2Did}/group{?%24select,%24expand}"; + var urlTplParams = new Dictionary(); + urlTplParams.Add("request-raw-url", rawUrl); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Get group from identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Beta.Models.Group.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Get group from identityGovernance + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new GroupRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get group from identityGovernance + /// + public class GroupRequestBuilderGetQueryParameters { + /// Expand related entities + [QueryParameter("%24expand")] + public string[] Expand { get; set; } + /// Select properties to be returned + [QueryParameter("%24select")] + public string[] Select { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class GroupRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public GroupRequestBuilderGetQueryParameters QueryParameters { get; set; } = new GroupRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new groupRequestBuilderGetRequestConfiguration and sets the default values. + /// + public GroupRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/Principal/PrincipalRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/Principal/PrincipalRequestBuilder.cs new file mode 100644 index 00000000000..ba5e4b8893b --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/Principal/PrincipalRequestBuilder.cs @@ -0,0 +1,112 @@ +using Microsoft.Graph.Beta.Models; +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +namespace Microsoft.Graph.Beta.IdentityGovernance.PrivilegedAccess.Group.EligibilityScheduleRequests.Item.Principal { + /// + /// Provides operations to manage the principal property of the microsoft.graph.privilegedAccessGroupEligibilityScheduleRequest entity. + /// + public class PrincipalRequestBuilder { + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// + /// Instantiates a new PrincipalRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public PrincipalRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) { + _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/identityGovernance/privilegedAccess/group/eligibilityScheduleRequests/{privilegedAccessGroupEligibilityScheduleRequest%2Did}/principal{?%24select,%24expand}"; + var urlTplParams = new Dictionary(pathParameters); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Instantiates a new PrincipalRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public PrincipalRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { + if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/identityGovernance/privilegedAccess/group/eligibilityScheduleRequests/{privilegedAccessGroupEligibilityScheduleRequest%2Did}/principal{?%24select,%24expand}"; + var urlTplParams = new Dictionary(); + urlTplParams.Add("request-raw-url", rawUrl); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Get principal from identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DirectoryObject.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Get principal from identityGovernance + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new PrincipalRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get principal from identityGovernance + /// + public class PrincipalRequestBuilderGetQueryParameters { + /// Expand related entities + [QueryParameter("%24expand")] + public string[] Expand { get; set; } + /// Select properties to be returned + [QueryParameter("%24select")] + public string[] Select { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class PrincipalRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public PrincipalRequestBuilderGetQueryParameters QueryParameters { get; set; } = new PrincipalRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new principalRequestBuilderGetRequestConfiguration and sets the default values. + /// + public PrincipalRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilder.cs new file mode 100644 index 00000000000..8cde0ee38ef --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilder.cs @@ -0,0 +1,232 @@ +using Microsoft.Graph.Beta.IdentityGovernance.PrivilegedAccess.Group.EligibilityScheduleRequests.Item.Cancel; +using Microsoft.Graph.Beta.IdentityGovernance.PrivilegedAccess.Group.EligibilityScheduleRequests.Item.Group; +using Microsoft.Graph.Beta.IdentityGovernance.PrivilegedAccess.Group.EligibilityScheduleRequests.Item.Principal; +using Microsoft.Graph.Beta.IdentityGovernance.PrivilegedAccess.Group.EligibilityScheduleRequests.Item.TargetSchedule; +using Microsoft.Graph.Beta.Models; +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +namespace Microsoft.Graph.Beta.IdentityGovernance.PrivilegedAccess.Group.EligibilityScheduleRequests.Item { + /// + /// Provides operations to manage the eligibilityScheduleRequests property of the microsoft.graph.privilegedAccessGroup entity. + /// + public class PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilder { + /// Provides operations to call the cancel method. + public CancelRequestBuilder Cancel { get => + new CancelRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the group property of the microsoft.graph.privilegedAccessGroupEligibilityScheduleRequest entity. + public Microsoft.Graph.Beta.IdentityGovernance.PrivilegedAccess.Group.EligibilityScheduleRequests.Item.Group.GroupRequestBuilder Group { get => + new Microsoft.Graph.Beta.IdentityGovernance.PrivilegedAccess.Group.EligibilityScheduleRequests.Item.Group.GroupRequestBuilder(PathParameters, RequestAdapter); + } + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// Provides operations to manage the principal property of the microsoft.graph.privilegedAccessGroupEligibilityScheduleRequest entity. + public PrincipalRequestBuilder Principal { get => + new PrincipalRequestBuilder(PathParameters, RequestAdapter); + } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// Provides operations to manage the targetSchedule property of the microsoft.graph.privilegedAccessGroupEligibilityScheduleRequest entity. + public TargetScheduleRequestBuilder TargetSchedule { get => + new TargetScheduleRequestBuilder(PathParameters, RequestAdapter); + } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// + /// Instantiates a new PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) { + _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/identityGovernance/privilegedAccess/group/eligibilityScheduleRequests/{privilegedAccessGroupEligibilityScheduleRequest%2Did}{?%24select,%24expand}"; + var urlTplParams = new Dictionary(pathParameters); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Instantiates a new PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { + if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/identityGovernance/privilegedAccess/group/eligibilityScheduleRequests/{privilegedAccessGroupEligibilityScheduleRequest%2Did}{?%24select,%24expand}"; + var urlTplParams = new Dictionary(); + urlTplParams.Add("request-raw-url", rawUrl); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Delete navigation property eligibilityScheduleRequests for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken); + } + /// + /// Get eligibilityScheduleRequests from identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, PrivilegedAccessGroupEligibilityScheduleRequest.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Update the navigation property eligibilityScheduleRequests in identityGovernance + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + public async Task PatchAsync(PrivilegedAccessGroupEligibilityScheduleRequest body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, PrivilegedAccessGroupEligibilityScheduleRequest.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Delete navigation property eligibilityScheduleRequests for identityGovernance + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get eligibilityScheduleRequests from identityGovernance + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update the navigation property eligibilityScheduleRequests in identityGovernance + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. + public RequestInformation ToPatchRequestInformation(PrivilegedAccessGroupEligibilityScheduleRequest body, Action requestConfiguration = default) { + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Get eligibilityScheduleRequests from identityGovernance + /// + public class PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilderGetQueryParameters { + /// Expand related entities + [QueryParameter("%24expand")] + public string[] Expand { get; set; } + /// Select properties to be returned + [QueryParameter("%24select")] + public string[] Select { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/TargetSchedule/TargetScheduleRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/TargetSchedule/TargetScheduleRequestBuilder.cs new file mode 100644 index 00000000000..c5eac7ef3ab --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/TargetSchedule/TargetScheduleRequestBuilder.cs @@ -0,0 +1,112 @@ +using Microsoft.Graph.Beta.Models; +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +namespace Microsoft.Graph.Beta.IdentityGovernance.PrivilegedAccess.Group.EligibilityScheduleRequests.Item.TargetSchedule { + /// + /// Provides operations to manage the targetSchedule property of the microsoft.graph.privilegedAccessGroupEligibilityScheduleRequest entity. + /// + public class TargetScheduleRequestBuilder { + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// + /// Instantiates a new TargetScheduleRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public TargetScheduleRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) { + _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/identityGovernance/privilegedAccess/group/eligibilityScheduleRequests/{privilegedAccessGroupEligibilityScheduleRequest%2Did}/targetSchedule{?%24select,%24expand}"; + var urlTplParams = new Dictionary(pathParameters); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Instantiates a new TargetScheduleRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public TargetScheduleRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { + if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/identityGovernance/privilegedAccess/group/eligibilityScheduleRequests/{privilegedAccessGroupEligibilityScheduleRequest%2Did}/targetSchedule{?%24select,%24expand}"; + var urlTplParams = new Dictionary(); + urlTplParams.Add("request-raw-url", rawUrl); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Get targetSchedule from identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, PrivilegedAccessGroupEligibilitySchedule.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Get targetSchedule from identityGovernance + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new TargetScheduleRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get targetSchedule from identityGovernance + /// + public class TargetScheduleRequestBuilderGetQueryParameters { + /// Expand related entities + [QueryParameter("%24expand")] + public string[] Expand { get; set; } + /// Select properties to be returned + [QueryParameter("%24select")] + public string[] Select { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class TargetScheduleRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public TargetScheduleRequestBuilderGetQueryParameters QueryParameters { get; set; } = new TargetScheduleRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new targetScheduleRequestBuilderGetRequestConfiguration and sets the default values. + /// + public TargetScheduleRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..1e7369a9fd6 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Count/CountRequestBuilder.cs @@ -0,0 +1,97 @@ +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +namespace Microsoft.Graph.Beta.IdentityGovernance.PrivilegedAccess.Group.EligibilitySchedules.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder { + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) { + _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/identityGovernance/privilegedAccess/group/eligibilitySchedules/$count"; + var urlTplParams = new Dictionary(pathParameters); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { + if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/identityGovernance/privilegedAccess/group/eligibilitySchedules/$count"; + var urlTplParams = new Dictionary(); + urlTplParams.Add("request-raw-url", rawUrl); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/EligibilitySchedulesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/EligibilitySchedulesRequestBuilder.cs new file mode 100644 index 00000000000..2b24e6a4b47 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/EligibilitySchedulesRequestBuilder.cs @@ -0,0 +1,204 @@ +using Microsoft.Graph.Beta.IdentityGovernance.PrivilegedAccess.Group.EligibilitySchedules.Count; +using Microsoft.Graph.Beta.IdentityGovernance.PrivilegedAccess.Group.EligibilitySchedules.FilterByCurrentUserWithOn; +using Microsoft.Graph.Beta.IdentityGovernance.PrivilegedAccess.Group.EligibilitySchedules.Item; +using Microsoft.Graph.Beta.Models; +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +namespace Microsoft.Graph.Beta.IdentityGovernance.PrivilegedAccess.Group.EligibilitySchedules { + /// + /// Provides operations to manage the eligibilitySchedules property of the microsoft.graph.privilegedAccessGroup entity. + /// + public class EligibilitySchedulesRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// Provides operations to manage the eligibilitySchedules property of the microsoft.graph.privilegedAccessGroup entity. + public PrivilegedAccessGroupEligibilityScheduleItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("privilegedAccessGroupEligibilitySchedule%2Did", position); + return new PrivilegedAccessGroupEligibilityScheduleItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new EligibilitySchedulesRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public EligibilitySchedulesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) { + _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/identityGovernance/privilegedAccess/group/eligibilitySchedules{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}"; + var urlTplParams = new Dictionary(pathParameters); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Instantiates a new EligibilitySchedulesRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public EligibilitySchedulesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { + if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/identityGovernance/privilegedAccess/group/eligibilitySchedules{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}"; + var urlTplParams = new Dictionary(); + urlTplParams.Add("request-raw-url", rawUrl); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Provides operations to call the filterByCurrentUser method. + /// + /// Usage: on='{on}' + public FilterByCurrentUserWithOnRequestBuilder FilterByCurrentUserWithOn(string on) { + if(string.IsNullOrEmpty(on)) throw new ArgumentNullException(nameof(on)); + return new FilterByCurrentUserWithOnRequestBuilder(PathParameters, RequestAdapter, on); + } + /// + /// Get eligibilitySchedules from identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, PrivilegedAccessGroupEligibilityScheduleCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Create new navigation property to eligibilitySchedules for identityGovernance + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + public async Task PostAsync(PrivilegedAccessGroupEligibilitySchedule body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, PrivilegedAccessGroupEligibilitySchedule.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Get eligibilitySchedules from identityGovernance + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new EligibilitySchedulesRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Create new navigation property to eligibilitySchedules for identityGovernance + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. + public RequestInformation ToPostRequestInformation(PrivilegedAccessGroupEligibilitySchedule body, Action requestConfiguration = default) { + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new EligibilitySchedulesRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get eligibilitySchedules from identityGovernance + /// + public class EligibilitySchedulesRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities + [QueryParameter("%24expand")] + public string[] Expand { get; set; } + /// Filter items by property values + [QueryParameter("%24filter")] + public string Filter { get; set; } + /// Order items by property values + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } + /// Search items by search phrases + [QueryParameter("%24search")] + public string Search { get; set; } + /// Select properties to be returned + [QueryParameter("%24select")] + public string[] Select { get; set; } + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class EligibilitySchedulesRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public EligibilitySchedulesRequestBuilderGetQueryParameters QueryParameters { get; set; } = new EligibilitySchedulesRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new eligibilitySchedulesRequestBuilderGetRequestConfiguration and sets the default values. + /// + public EligibilitySchedulesRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class EligibilitySchedulesRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new eligibilitySchedulesRequestBuilderPostRequestConfiguration and sets the default values. + /// + public EligibilitySchedulesRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs new file mode 100644 index 00000000000..cfde0c25d5d --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs @@ -0,0 +1,128 @@ +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +namespace Microsoft.Graph.Beta.IdentityGovernance.PrivilegedAccess.Group.EligibilitySchedules.FilterByCurrentUserWithOn { + /// + /// Provides operations to call the filterByCurrentUser method. + /// + public class FilterByCurrentUserWithOnRequestBuilder { + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// + /// Instantiates a new FilterByCurrentUserWithOnRequestBuilder and sets the default values. + /// + /// Usage: on='{on}' + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public FilterByCurrentUserWithOnRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter, string on = default) { + _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/identityGovernance/privilegedAccess/group/eligibilitySchedules/microsoft.graph.filterByCurrentUser(on='{on}'){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"; + var urlTplParams = new Dictionary(pathParameters); + urlTplParams.Add("on", on); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Instantiates a new FilterByCurrentUserWithOnRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public FilterByCurrentUserWithOnRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { + if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/identityGovernance/privilegedAccess/group/eligibilitySchedules/microsoft.graph.filterByCurrentUser(on='{on}'){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"; + var urlTplParams = new Dictionary(); + urlTplParams.Add("request-raw-url", rawUrl); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Invoke function filterByCurrentUser + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, FilterByCurrentUserWithOnResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Invoke function filterByCurrentUser + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new FilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Invoke function filterByCurrentUser + /// + public class FilterByCurrentUserWithOnRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Filter items by property values + [QueryParameter("%24filter")] + public string Filter { get; set; } + /// Order items by property values + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } + /// Search items by search phrases + [QueryParameter("%24search")] + public string Search { get; set; } + /// Select properties to be returned + [QueryParameter("%24select")] + public string[] Select { get; set; } + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class FilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public FilterByCurrentUserWithOnRequestBuilderGetQueryParameters QueryParameters { get; set; } = new FilterByCurrentUserWithOnRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new filterByCurrentUserWithOnRequestBuilderGetRequestConfiguration and sets the default values. + /// + public FilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs new file mode 100644 index 00000000000..2dfde105bab --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs @@ -0,0 +1,40 @@ +using Microsoft.Graph.Beta.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +namespace Microsoft.Graph.Beta.IdentityGovernance.PrivilegedAccess.Group.EligibilitySchedules.FilterByCurrentUserWithOn { + public class FilterByCurrentUserWithOnResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new FilterByCurrentUserWithOnResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new FilterByCurrentUserWithOnResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(PrivilegedAccessGroupEligibilitySchedule.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/Group/GroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/Group/GroupRequestBuilder.cs new file mode 100644 index 00000000000..2c588bdecf1 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/Group/GroupRequestBuilder.cs @@ -0,0 +1,112 @@ +using Microsoft.Graph.Beta.Models; +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +namespace Microsoft.Graph.Beta.IdentityGovernance.PrivilegedAccess.Group.EligibilitySchedules.Item.Group { + /// + /// Provides operations to manage the group property of the microsoft.graph.privilegedAccessGroupEligibilitySchedule entity. + /// + public class GroupRequestBuilder { + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// + /// Instantiates a new GroupRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public GroupRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) { + _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/identityGovernance/privilegedAccess/group/eligibilitySchedules/{privilegedAccessGroupEligibilitySchedule%2Did}/group{?%24select,%24expand}"; + var urlTplParams = new Dictionary(pathParameters); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Instantiates a new GroupRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public GroupRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { + if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/identityGovernance/privilegedAccess/group/eligibilitySchedules/{privilegedAccessGroupEligibilitySchedule%2Did}/group{?%24select,%24expand}"; + var urlTplParams = new Dictionary(); + urlTplParams.Add("request-raw-url", rawUrl); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Get group from identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Beta.Models.Group.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Get group from identityGovernance + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new GroupRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get group from identityGovernance + /// + public class GroupRequestBuilderGetQueryParameters { + /// Expand related entities + [QueryParameter("%24expand")] + public string[] Expand { get; set; } + /// Select properties to be returned + [QueryParameter("%24select")] + public string[] Select { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class GroupRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public GroupRequestBuilderGetQueryParameters QueryParameters { get; set; } = new GroupRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new groupRequestBuilderGetRequestConfiguration and sets the default values. + /// + public GroupRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/Principal/PrincipalRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/Principal/PrincipalRequestBuilder.cs new file mode 100644 index 00000000000..70a0abf8532 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/Principal/PrincipalRequestBuilder.cs @@ -0,0 +1,112 @@ +using Microsoft.Graph.Beta.Models; +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +namespace Microsoft.Graph.Beta.IdentityGovernance.PrivilegedAccess.Group.EligibilitySchedules.Item.Principal { + /// + /// Provides operations to manage the principal property of the microsoft.graph.privilegedAccessGroupEligibilitySchedule entity. + /// + public class PrincipalRequestBuilder { + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// + /// Instantiates a new PrincipalRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public PrincipalRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) { + _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/identityGovernance/privilegedAccess/group/eligibilitySchedules/{privilegedAccessGroupEligibilitySchedule%2Did}/principal{?%24select,%24expand}"; + var urlTplParams = new Dictionary(pathParameters); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Instantiates a new PrincipalRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public PrincipalRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { + if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/identityGovernance/privilegedAccess/group/eligibilitySchedules/{privilegedAccessGroupEligibilitySchedule%2Did}/principal{?%24select,%24expand}"; + var urlTplParams = new Dictionary(); + urlTplParams.Add("request-raw-url", rawUrl); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Get principal from identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DirectoryObject.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Get principal from identityGovernance + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new PrincipalRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get principal from identityGovernance + /// + public class PrincipalRequestBuilderGetQueryParameters { + /// Expand related entities + [QueryParameter("%24expand")] + public string[] Expand { get; set; } + /// Select properties to be returned + [QueryParameter("%24select")] + public string[] Select { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class PrincipalRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public PrincipalRequestBuilderGetQueryParameters QueryParameters { get; set; } = new PrincipalRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new principalRequestBuilderGetRequestConfiguration and sets the default values. + /// + public PrincipalRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/PrivilegedAccessGroupEligibilityScheduleItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/PrivilegedAccessGroupEligibilityScheduleItemRequestBuilder.cs new file mode 100644 index 00000000000..7513db05ac4 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/PrivilegedAccessGroupEligibilityScheduleItemRequestBuilder.cs @@ -0,0 +1,222 @@ +using Microsoft.Graph.Beta.IdentityGovernance.PrivilegedAccess.Group.EligibilitySchedules.Item.Group; +using Microsoft.Graph.Beta.IdentityGovernance.PrivilegedAccess.Group.EligibilitySchedules.Item.Principal; +using Microsoft.Graph.Beta.Models; +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +namespace Microsoft.Graph.Beta.IdentityGovernance.PrivilegedAccess.Group.EligibilitySchedules.Item { + /// + /// Provides operations to manage the eligibilitySchedules property of the microsoft.graph.privilegedAccessGroup entity. + /// + public class PrivilegedAccessGroupEligibilityScheduleItemRequestBuilder { + /// Provides operations to manage the group property of the microsoft.graph.privilegedAccessGroupEligibilitySchedule entity. + public Microsoft.Graph.Beta.IdentityGovernance.PrivilegedAccess.Group.EligibilitySchedules.Item.Group.GroupRequestBuilder Group { get => + new Microsoft.Graph.Beta.IdentityGovernance.PrivilegedAccess.Group.EligibilitySchedules.Item.Group.GroupRequestBuilder(PathParameters, RequestAdapter); + } + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// Provides operations to manage the principal property of the microsoft.graph.privilegedAccessGroupEligibilitySchedule entity. + public PrincipalRequestBuilder Principal { get => + new PrincipalRequestBuilder(PathParameters, RequestAdapter); + } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// + /// Instantiates a new PrivilegedAccessGroupEligibilityScheduleItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public PrivilegedAccessGroupEligibilityScheduleItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) { + _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/identityGovernance/privilegedAccess/group/eligibilitySchedules/{privilegedAccessGroupEligibilitySchedule%2Did}{?%24select,%24expand}"; + var urlTplParams = new Dictionary(pathParameters); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Instantiates a new PrivilegedAccessGroupEligibilityScheduleItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public PrivilegedAccessGroupEligibilityScheduleItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { + if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/identityGovernance/privilegedAccess/group/eligibilitySchedules/{privilegedAccessGroupEligibilitySchedule%2Did}{?%24select,%24expand}"; + var urlTplParams = new Dictionary(); + urlTplParams.Add("request-raw-url", rawUrl); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Delete navigation property eligibilitySchedules for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken); + } + /// + /// Get eligibilitySchedules from identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, PrivilegedAccessGroupEligibilitySchedule.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Update the navigation property eligibilitySchedules in identityGovernance + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + public async Task PatchAsync(PrivilegedAccessGroupEligibilitySchedule body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, PrivilegedAccessGroupEligibilitySchedule.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Delete navigation property eligibilitySchedules for identityGovernance + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new PrivilegedAccessGroupEligibilityScheduleItemRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get eligibilitySchedules from identityGovernance + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new PrivilegedAccessGroupEligibilityScheduleItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update the navigation property eligibilitySchedules in identityGovernance + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. + public RequestInformation ToPatchRequestInformation(PrivilegedAccessGroupEligibilitySchedule body, Action requestConfiguration = default) { + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new PrivilegedAccessGroupEligibilityScheduleItemRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class PrivilegedAccessGroupEligibilityScheduleItemRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new PrivilegedAccessGroupEligibilityScheduleItemRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public PrivilegedAccessGroupEligibilityScheduleItemRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Get eligibilitySchedules from identityGovernance + /// + public class PrivilegedAccessGroupEligibilityScheduleItemRequestBuilderGetQueryParameters { + /// Expand related entities + [QueryParameter("%24expand")] + public string[] Expand { get; set; } + /// Select properties to be returned + [QueryParameter("%24select")] + public string[] Select { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class PrivilegedAccessGroupEligibilityScheduleItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public PrivilegedAccessGroupEligibilityScheduleItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new PrivilegedAccessGroupEligibilityScheduleItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new PrivilegedAccessGroupEligibilityScheduleItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public PrivilegedAccessGroupEligibilityScheduleItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class PrivilegedAccessGroupEligibilityScheduleItemRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new PrivilegedAccessGroupEligibilityScheduleItemRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public PrivilegedAccessGroupEligibilityScheduleItemRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/GroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/GroupRequestBuilder.cs new file mode 100644 index 00000000000..50102013517 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/GroupRequestBuilder.cs @@ -0,0 +1,242 @@ +using Microsoft.Graph.Beta.IdentityGovernance.PrivilegedAccess.Group.AssignmentScheduleInstances; +using Microsoft.Graph.Beta.IdentityGovernance.PrivilegedAccess.Group.AssignmentScheduleRequests; +using Microsoft.Graph.Beta.IdentityGovernance.PrivilegedAccess.Group.AssignmentSchedules; +using Microsoft.Graph.Beta.IdentityGovernance.PrivilegedAccess.Group.EligibilityScheduleInstances; +using Microsoft.Graph.Beta.IdentityGovernance.PrivilegedAccess.Group.EligibilityScheduleRequests; +using Microsoft.Graph.Beta.IdentityGovernance.PrivilegedAccess.Group.EligibilitySchedules; +using Microsoft.Graph.Beta.Models; +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +namespace Microsoft.Graph.Beta.IdentityGovernance.PrivilegedAccess.Group { + /// + /// Provides operations to manage the group property of the microsoft.graph.privilegedAccessRoot entity. + /// + public class GroupRequestBuilder { + /// Provides operations to manage the assignmentScheduleInstances property of the microsoft.graph.privilegedAccessGroup entity. + public AssignmentScheduleInstancesRequestBuilder AssignmentScheduleInstances { get => + new AssignmentScheduleInstancesRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the assignmentScheduleRequests property of the microsoft.graph.privilegedAccessGroup entity. + public AssignmentScheduleRequestsRequestBuilder AssignmentScheduleRequests { get => + new AssignmentScheduleRequestsRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the assignmentSchedules property of the microsoft.graph.privilegedAccessGroup entity. + public AssignmentSchedulesRequestBuilder AssignmentSchedules { get => + new AssignmentSchedulesRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the eligibilityScheduleInstances property of the microsoft.graph.privilegedAccessGroup entity. + public EligibilityScheduleInstancesRequestBuilder EligibilityScheduleInstances { get => + new EligibilityScheduleInstancesRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the eligibilityScheduleRequests property of the microsoft.graph.privilegedAccessGroup entity. + public EligibilityScheduleRequestsRequestBuilder EligibilityScheduleRequests { get => + new EligibilityScheduleRequestsRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the eligibilitySchedules property of the microsoft.graph.privilegedAccessGroup entity. + public EligibilitySchedulesRequestBuilder EligibilitySchedules { get => + new EligibilitySchedulesRequestBuilder(PathParameters, RequestAdapter); + } + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// + /// Instantiates a new GroupRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public GroupRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) { + _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/identityGovernance/privilegedAccess/group{?%24select,%24expand}"; + var urlTplParams = new Dictionary(pathParameters); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Instantiates a new GroupRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public GroupRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { + if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/identityGovernance/privilegedAccess/group{?%24select,%24expand}"; + var urlTplParams = new Dictionary(); + urlTplParams.Add("request-raw-url", rawUrl); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Delete navigation property group for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken); + } + /// + /// Get group from identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, PrivilegedAccessGroup.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Update the navigation property group in identityGovernance + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + public async Task PatchAsync(PrivilegedAccessGroup body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, PrivilegedAccessGroup.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Delete navigation property group for identityGovernance + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new GroupRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get group from identityGovernance + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new GroupRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update the navigation property group in identityGovernance + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. + public RequestInformation ToPatchRequestInformation(PrivilegedAccessGroup body, Action requestConfiguration = default) { + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new GroupRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class GroupRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new groupRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public GroupRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Get group from identityGovernance + /// + public class GroupRequestBuilderGetQueryParameters { + /// Expand related entities + [QueryParameter("%24expand")] + public string[] Expand { get; set; } + /// Select properties to be returned + [QueryParameter("%24select")] + public string[] Select { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class GroupRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public GroupRequestBuilderGetQueryParameters QueryParameters { get; set; } = new GroupRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new groupRequestBuilderGetRequestConfiguration and sets the default values. + /// + public GroupRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class GroupRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new groupRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public GroupRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/PrivilegedAccessRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/PrivilegedAccessRequestBuilder.cs new file mode 100644 index 00000000000..1b71473d383 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/PrivilegedAccessRequestBuilder.cs @@ -0,0 +1,217 @@ +using Microsoft.Graph.Beta.IdentityGovernance.PrivilegedAccess.Group; +using Microsoft.Graph.Beta.Models; +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +namespace Microsoft.Graph.Beta.IdentityGovernance.PrivilegedAccess { + /// + /// Provides operations to manage the privilegedAccess property of the microsoft.graph.identityGovernance entity. + /// + public class PrivilegedAccessRequestBuilder { + /// Provides operations to manage the group property of the microsoft.graph.privilegedAccessRoot entity. + public GroupRequestBuilder Group { get => + new GroupRequestBuilder(PathParameters, RequestAdapter); + } + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// + /// Instantiates a new PrivilegedAccessRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public PrivilegedAccessRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) { + _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/identityGovernance/privilegedAccess{?%24select,%24expand}"; + var urlTplParams = new Dictionary(pathParameters); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Instantiates a new PrivilegedAccessRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public PrivilegedAccessRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { + if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/identityGovernance/privilegedAccess{?%24select,%24expand}"; + var urlTplParams = new Dictionary(); + urlTplParams.Add("request-raw-url", rawUrl); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Delete navigation property privilegedAccess for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken); + } + /// + /// Get privilegedAccess from identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, PrivilegedAccessRoot.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Update the navigation property privilegedAccess in identityGovernance + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + public async Task PatchAsync(PrivilegedAccessRoot body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, PrivilegedAccessRoot.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Delete navigation property privilegedAccess for identityGovernance + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new PrivilegedAccessRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get privilegedAccess from identityGovernance + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new PrivilegedAccessRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update the navigation property privilegedAccess in identityGovernance + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. + public RequestInformation ToPatchRequestInformation(PrivilegedAccessRoot body, Action requestConfiguration = default) { + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new PrivilegedAccessRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class PrivilegedAccessRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new privilegedAccessRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public PrivilegedAccessRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Get privilegedAccess from identityGovernance + /// + public class PrivilegedAccessRequestBuilderGetQueryParameters { + /// Expand related entities + [QueryParameter("%24expand")] + public string[] Expand { get; set; } + /// Select properties to be returned + [QueryParameter("%24select")] + public string[] Select { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class PrivilegedAccessRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public PrivilegedAccessRequestBuilderGetQueryParameters QueryParameters { get; set; } = new PrivilegedAccessRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new privilegedAccessRequestBuilderGetRequestConfiguration and sets the default values. + /// + public PrivilegedAccessRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class PrivilegedAccessRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new privilegedAccessRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public PrivilegedAccessRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Me/Authentication/Methods/MethodsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Authentication/Methods/MethodsRequestBuilder.cs index 33ae2a4330c..21043cbdcd0 100644 --- a/src/Microsoft.Graph/Generated/Me/Authentication/Methods/MethodsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Authentication/Methods/MethodsRequestBuilder.cs @@ -59,7 +59,7 @@ public MethodsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { RequestAdapter = requestAdapter; } /// - /// Retrieve a list of authenticationMethod objects. This API returns only authentication methods supported on this API version. See Azure AD authentication methods API overview for a list of currently supported methods. + /// Retrieve a list of authentication methods registered to a user. The authentication methods are defined by the types derived from the authenticationMethod resource type, and only the methods supported on this API version. See Azure AD authentication methods API overview for a list of currently supported methods. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -88,7 +88,7 @@ public async Task PostAsync(AuthenticationMethod body, Act return await RequestAdapter.SendAsync(requestInfo, AuthenticationMethod.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Retrieve a list of authenticationMethod objects. This API returns only authentication methods supported on this API version. See Azure AD authentication methods API overview for a list of currently supported methods. + /// Retrieve a list of authentication methods registered to a user. The authentication methods are defined by the types derived from the authenticationMethod resource type, and only the methods supported on this API version. See Azure AD authentication methods API overview for a list of currently supported methods. /// /// Configuration for the request such as headers, query parameters, and middleware options. public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { @@ -130,7 +130,7 @@ public RequestInformation ToPostRequestInformation(AuthenticationMethod body, Ac return requestInfo; } /// - /// Retrieve a list of authenticationMethod objects. This API returns only authentication methods supported on this API version. See Azure AD authentication methods API overview for a list of currently supported methods. + /// Retrieve a list of authentication methods registered to a user. The authentication methods are defined by the types derived from the authenticationMethod resource type, and only the methods supported on this API version. See Azure AD authentication methods API overview for a list of currently supported methods. /// public class MethodsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/MessagesRequestBuilder.cs index 9c2fdcf1840..9134b59db7c 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/MessagesRequestBuilder.cs @@ -80,8 +80,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Send a new chatMessage in the specified channel or a chat. - /// Find more info here + /// Send a new chatMessage in the specified chat. This API cannot create a new chat; you must use the list chats method to retrieve the ID of an existing chat before creating a chat message. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -116,7 +116,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Send a new chatMessage in the specified channel or a chat. + /// Send a new chatMessage in the specified chat. This API cannot create a new chat; you must use the list chats method to retrieve the ID of an existing chat before creating a chat message. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/MeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MeRequestBuilder.cs index 7524602b485..c436bb7953b 100644 --- a/src/Microsoft.Graph/Generated/Me/MeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MeRequestBuilder.cs @@ -526,8 +526,8 @@ public FindRoomsWithRoomListRequestBuilder FindRoomsWithRoomList(string roomList return new FindRoomsWithRoomListRequestBuilder(PathParameters, RequestAdapter, roomList); } /// - /// Retrieve the properties and relationships of user object. This operation returns by default only a subset of the more commonly used properties for each user. These _default_ properties are noted in the Properties section. To get properties that are _not_ returned by default, do a GET operation for the user and specify the properties in a `$select` OData query option. Because the **user** resource supports extensions, you can also use the `GET` operation to get custom properties and extension data in a **user** instance. - /// Find more info here + /// Returns the user or organizational contact assigned as the user's manager. Optionally, you can expand the manager's chain up to the root node. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -608,7 +608,7 @@ public ReminderViewWithStartDateTimeWithEndDateTimeRequestBuilder ReminderViewWi return new ReminderViewWithStartDateTimeWithEndDateTimeRequestBuilder(PathParameters, RequestAdapter, endDateTime, startDateTime); } /// - /// Retrieve the properties and relationships of user object. This operation returns by default only a subset of the more commonly used properties for each user. These _default_ properties are noted in the Properties section. To get properties that are _not_ returned by default, do a GET operation for the user and specify the properties in a `$select` OData query option. Because the **user** resource supports extensions, you can also use the `GET` operation to get custom properties and extension data in a **user** instance. + /// Returns the user or organizational contact assigned as the user's manager. Optionally, you can expand the manager's chain up to the root node. /// /// Configuration for the request such as headers, query parameters, and middleware options. public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { @@ -650,7 +650,7 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Beta.Models. return requestInfo; } /// - /// Retrieve the properties and relationships of user object. This operation returns by default only a subset of the more commonly used properties for each user. These _default_ properties are noted in the Properties section. To get properties that are _not_ returned by default, do a GET operation for the user and specify the properties in a `$select` OData query option. Because the **user** resource supports extensions, you can also use the `GET` operation to get custom properties and extension data in a **user** instance. + /// Returns the user or organizational contact assigned as the user's manager. Optionally, you can expand the manager's chain up to the root node. /// public class MeRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Messages/MessagesRequestBuilder.cs index bac171adc70..e224cdbbe37 100644 --- a/src/Microsoft.Graph/Generated/Me/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Messages/MessagesRequestBuilder.cs @@ -80,8 +80,8 @@ public async Task GetAsync(Action(requestInfo, MessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Create a draft of a new message in either JSON or MIME format. When using JSON format, you can:- Include an attachment.- Use a mention to call out another user in the new message.- Update the draft later to add content to the **body** or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in **base64** format in the request body.- /* Add any attachments and S/MIME properties to the MIME content. By default, this operation saves the draft in the Drafts folder. Send the draft message in a subsequent operation. Alternatively, send a new message in a single action, or create a draft to forward, to reply or to reply-all to an existing message. - /// Find more info here + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. See known limitations of open extensions for more information. The table in the Permissions section lists the resources that support open extensions. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -116,7 +116,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a draft of a new message in either JSON or MIME format. When using JSON format, you can:- Include an attachment.- Use a mention to call out another user in the new message.- Update the draft later to add content to the **body** or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in **base64** format in the request body.- /* Add any attachments and S/MIME properties to the MIME content. By default, this operation saves the draft in the Drafts folder. Send the draft message in a subsequent operation. Alternatively, send a new message in a single action, or create a draft to forward, to reply or to reply-all to an existing message. + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. See known limitations of open extensions for more information. The table in the Permissions section lists the resources that support open extensions. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/Registration/RegistrationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/Registration/RegistrationRequestBuilder.cs index 281400c1331..bdbda0b9160 100644 --- a/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/Registration/RegistrationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/Registration/RegistrationRequestBuilder.cs @@ -52,8 +52,8 @@ public RegistrationRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) RequestAdapter = requestAdapter; } /// - /// Disable and delete the meetingRegistration of an onlineMeeting on behalf of the organizer. - /// Find more info here + /// Disable and delete the externalMeetingRegistration of an onlineMeeting. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -66,8 +66,8 @@ public async Task DeleteAsync(Action - /// Get the externalMeetingRegistration details associated with an onlineMeeting. - /// Find more info here + /// Get the meetingRegistration details associated with an onlineMeeting on behalf of the organizer. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -96,7 +96,7 @@ public async Task PatchAsync(MeetingRegistration body, Acti return await RequestAdapter.SendAsync(requestInfo, MeetingRegistration.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Disable and delete the meetingRegistration of an onlineMeeting on behalf of the organizer. + /// Disable and delete the externalMeetingRegistration of an onlineMeeting. /// /// Configuration for the request such as headers, query parameters, and middleware options. public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get the externalMeetingRegistration details associated with an onlineMeeting. + /// Get the meetingRegistration details associated with an onlineMeeting on behalf of the organizer. /// /// Configuration for the request such as headers, query parameters, and middleware options. public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { @@ -172,7 +172,7 @@ public RegistrationRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get the externalMeetingRegistration details associated with an onlineMeeting. + /// Get the meetingRegistration details associated with an onlineMeeting on behalf of the organizer. /// public class RegistrationRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Models/AccountTargetContent.cs b/src/Microsoft.Graph/Generated/Models/AccountTargetContent.cs new file mode 100644 index 00000000000..ec68ca5b5e3 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/AccountTargetContent.cs @@ -0,0 +1,66 @@ +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +namespace Microsoft.Graph.Beta.Models { + public class AccountTargetContent : IAdditionalDataHolder, IBackedModel, IParsable { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { + get { return BackingStore?.Get>("additionalData"); } + set { BackingStore?.Set("additionalData", value); } + } + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// The OdataType property + public string OdataType { + get { return BackingStore?.Get("@odata.type"); } + set { BackingStore?.Set("@odata.type", value); } + } + /// The type property + public AccountTargetContentType? Type { + get { return BackingStore?.Get("type"); } + set { BackingStore?.Set("type", value); } + } + /// + /// Instantiates a new accountTargetContent and sets the default values. + /// + public AccountTargetContent() { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static AccountTargetContent CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + var mappingValue = parseNode.GetChildNode("@odata.type")?.GetStringValue(); + return mappingValue switch { + "#microsoft.graph.addressBookAccountTargetContent" => new AddressBookAccountTargetContent(), + "#microsoft.graph.includeAllAccountTargetContent" => new IncludeAllAccountTargetContent(), + _ => new AccountTargetContent(), + }; + } + /// + /// The deserialization information for the current model + /// + public IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, + {"type", n => { Type = n.GetEnumValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteEnumValue("type", Type); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/AccountTargetContentType.cs b/src/Microsoft.Graph/Generated/Models/AccountTargetContentType.cs new file mode 100644 index 00000000000..3412f088285 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/AccountTargetContentType.cs @@ -0,0 +1,8 @@ +namespace Microsoft.Graph.Beta.Models { + public enum AccountTargetContentType { + Unknown, + IncludeAll, + AddressBook, + UnknownFutureValue, + } +} diff --git a/src/Microsoft.Graph/Generated/Models/AddressBookAccountTargetContent.cs b/src/Microsoft.Graph/Generated/Models/AddressBookAccountTargetContent.cs new file mode 100644 index 00000000000..f757d94e8d8 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/AddressBookAccountTargetContent.cs @@ -0,0 +1,45 @@ +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +namespace Microsoft.Graph.Beta.Models { + public class AddressBookAccountTargetContent : AccountTargetContent, IParsable { + /// The accountTargetEmails property + public List AccountTargetEmails { + get { return BackingStore?.Get>("accountTargetEmails"); } + set { BackingStore?.Set("accountTargetEmails", value); } + } + /// + /// Instantiates a new AddressBookAccountTargetContent and sets the default values. + /// + public AddressBookAccountTargetContent() : base() { + OdataType = "#microsoft.graph.addressBookAccountTargetContent"; + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new AddressBookAccountTargetContent CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new AddressBookAccountTargetContent(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"accountTargetEmails", n => { AccountTargetEmails = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfPrimitiveValues("accountTargetEmails", AccountTargetEmails); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/AdministrativeUnit.cs b/src/Microsoft.Graph/Generated/Models/AdministrativeUnit.cs index 9e156c06bb3..e27d4741be1 100644 --- a/src/Microsoft.Graph/Generated/Models/AdministrativeUnit.cs +++ b/src/Microsoft.Graph/Generated/Models/AdministrativeUnit.cs @@ -41,7 +41,7 @@ public string Visibility { set { BackingStore?.Set("visibility", value); } } /// - /// Instantiates a new administrativeUnit and sets the default values. + /// Instantiates a new AdministrativeUnit and sets the default values. /// public AdministrativeUnit() : base() { OdataType = "#microsoft.graph.administrativeUnit"; diff --git a/src/Microsoft.Graph/Generated/Models/AndroidDeviceOwnerEnrollmentProfile.cs b/src/Microsoft.Graph/Generated/Models/AndroidDeviceOwnerEnrollmentProfile.cs index e077228e1a6..6b0aaa34c34 100644 --- a/src/Microsoft.Graph/Generated/Models/AndroidDeviceOwnerEnrollmentProfile.cs +++ b/src/Microsoft.Graph/Generated/Models/AndroidDeviceOwnerEnrollmentProfile.cs @@ -4,9 +4,6 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Beta.Models { - /// - /// Enrollment Profile used to enroll Android Enterprise devices using Google's Cloud Management. - /// public class AndroidDeviceOwnerEnrollmentProfile : Entity, IParsable { /// Tenant GUID the enrollment profile belongs to. public string AccountId { @@ -53,6 +50,11 @@ public int? EnrollmentTokenUsageCount { get { return BackingStore?.Get("enrollmentTokenUsageCount"); } set { BackingStore?.Set("enrollmentTokenUsageCount", value); } } + /// Boolean indicating if this profile is an Android AOSP for Teams device profile. + public bool? IsTeamsDeviceProfile { + get { return BackingStore?.Get("isTeamsDeviceProfile"); } + set { BackingStore?.Set("isTeamsDeviceProfile", value); } + } /// Date time the enrollment profile was last modified. public DateTimeOffset? LastModifiedDateTime { get { return BackingStore?.Get("lastModifiedDateTime"); } @@ -130,6 +132,7 @@ public string WifiSsid { {"enrollmentMode", n => { EnrollmentMode = n.GetEnumValue(); } }, {"enrollmentTokenType", n => { EnrollmentTokenType = n.GetEnumValue(); } }, {"enrollmentTokenUsageCount", n => { EnrollmentTokenUsageCount = n.GetIntValue(); } }, + {"isTeamsDeviceProfile", n => { IsTeamsDeviceProfile = n.GetBoolValue(); } }, {"lastModifiedDateTime", n => { LastModifiedDateTime = n.GetDateTimeOffsetValue(); } }, {"qrCodeContent", n => { QrCodeContent = n.GetStringValue(); } }, {"qrCodeImage", n => { QrCodeImage = n.GetObjectValue(MimeContent.CreateFromDiscriminatorValue); } }, @@ -159,6 +162,7 @@ public string WifiSsid { writer.WriteEnumValue("enrollmentMode", EnrollmentMode); writer.WriteEnumValue("enrollmentTokenType", EnrollmentTokenType); writer.WriteIntValue("enrollmentTokenUsageCount", EnrollmentTokenUsageCount); + writer.WriteBoolValue("isTeamsDeviceProfile", IsTeamsDeviceProfile); writer.WriteDateTimeOffsetValue("lastModifiedDateTime", LastModifiedDateTime); writer.WriteStringValue("qrCodeContent", QrCodeContent); writer.WriteObjectValue("qrCodeImage", QrCodeImage); diff --git a/src/Microsoft.Graph/Generated/Models/AndroidForWorkAppConfigurationSchema.cs b/src/Microsoft.Graph/Generated/Models/AndroidForWorkAppConfigurationSchema.cs index 11b6327c77e..7e0ac93ba6e 100644 --- a/src/Microsoft.Graph/Generated/Models/AndroidForWorkAppConfigurationSchema.cs +++ b/src/Microsoft.Graph/Generated/Models/AndroidForWorkAppConfigurationSchema.cs @@ -4,9 +4,6 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Beta.Models { - /// - /// Schema describing an Android for Work application's custom configurations. - /// public class AndroidForWorkAppConfigurationSchema : Entity, IParsable { /// UTF8 encoded byte array containing example JSON string conforming to this schema that demonstrates how to set the configuration for this app public byte[] ExampleJson { diff --git a/src/Microsoft.Graph/Generated/Models/AndroidForWorkEnrollmentProfile.cs b/src/Microsoft.Graph/Generated/Models/AndroidForWorkEnrollmentProfile.cs index 40061f0f228..9c2b41f8f84 100644 --- a/src/Microsoft.Graph/Generated/Models/AndroidForWorkEnrollmentProfile.cs +++ b/src/Microsoft.Graph/Generated/Models/AndroidForWorkEnrollmentProfile.cs @@ -4,9 +4,6 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Beta.Models { - /// - /// Enrollment Profile used to enroll COSU devices using Google's Cloud Management. - /// public class AndroidForWorkEnrollmentProfile : Entity, IParsable { /// Tenant GUID the enrollment profile belongs to. public string AccountId { diff --git a/src/Microsoft.Graph/Generated/Models/AndroidManagedStoreAppConfigurationSchema.cs b/src/Microsoft.Graph/Generated/Models/AndroidManagedStoreAppConfigurationSchema.cs index a30c5928473..4886694d288 100644 --- a/src/Microsoft.Graph/Generated/Models/AndroidManagedStoreAppConfigurationSchema.cs +++ b/src/Microsoft.Graph/Generated/Models/AndroidManagedStoreAppConfigurationSchema.cs @@ -4,9 +4,6 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Beta.Models { - /// - /// Schema describing an Android application's custom configurations. - /// public class AndroidManagedStoreAppConfigurationSchema : Entity, IParsable { /// UTF8 encoded byte array containing example JSON string conforming to this schema that demonstrates how to set the configuration for this app public byte[] ExampleJson { diff --git a/src/Microsoft.Graph/Generated/Models/AndroidMinimumOperatingSystem.cs b/src/Microsoft.Graph/Generated/Models/AndroidMinimumOperatingSystem.cs index e8495df626f..2c138064708 100644 --- a/src/Microsoft.Graph/Generated/Models/AndroidMinimumOperatingSystem.cs +++ b/src/Microsoft.Graph/Generated/Models/AndroidMinimumOperatingSystem.cs @@ -21,82 +21,82 @@ public string OdataType { get { return BackingStore?.Get("@odata.type"); } set { BackingStore?.Set("@odata.type", value); } } - /// Version 10.0 or later. + /// When TRUE, only Version 10.0 or later is supported. Default value is FALSE. Exactly one of the minimum operating system boolean values will be TRUE. public bool? V10_0 { get { return BackingStore?.Get("v10_0"); } set { BackingStore?.Set("v10_0", value); } } - /// Version 11.0 or later. + /// When TRUE, only Version 11.0 or later is supported. Default value is FALSE. Exactly one of the minimum operating system boolean values will be TRUE. public bool? V11_0 { get { return BackingStore?.Get("v11_0"); } set { BackingStore?.Set("v11_0", value); } } - /// Version 4.0 or later. + /// When TRUE, only Version 4.0 or later is supported. Default value is FALSE. Exactly one of the minimum operating system boolean values will be TRUE. public bool? V4_0 { get { return BackingStore?.Get("v4_0"); } set { BackingStore?.Set("v4_0", value); } } - /// Version 4.0.3 or later. + /// When TRUE, only Version 4.0.3 or later is supported. Default value is FALSE. Exactly one of the minimum operating system boolean values will be TRUE. public bool? V4_0_3 { get { return BackingStore?.Get("v4_0_3"); } set { BackingStore?.Set("v4_0_3", value); } } - /// Version 4.1 or later. + /// When TRUE, only Version 4.1 or later is supported. Default value is FALSE. Exactly one of the minimum operating system boolean values will be TRUE. public bool? V4_1 { get { return BackingStore?.Get("v4_1"); } set { BackingStore?.Set("v4_1", value); } } - /// Version 4.2 or later. + /// When TRUE, only Version 4.2 or later is supported. Default value is FALSE. Exactly one of the minimum operating system boolean values will be TRUE. public bool? V4_2 { get { return BackingStore?.Get("v4_2"); } set { BackingStore?.Set("v4_2", value); } } - /// Version 4.3 or later. + /// When TRUE, only Version 4.3 or later is supported. Default value is FALSE. Exactly one of the minimum operating system boolean values will be TRUE. public bool? V4_3 { get { return BackingStore?.Get("v4_3"); } set { BackingStore?.Set("v4_3", value); } } - /// Version 4.4 or later. + /// When TRUE, only Version 4.4 or later is supported. Default value is FALSE. Exactly one of the minimum operating system boolean values will be TRUE. public bool? V4_4 { get { return BackingStore?.Get("v4_4"); } set { BackingStore?.Set("v4_4", value); } } - /// Version 5.0 or later. + /// When TRUE, only Version 5.0 or later is supported. Default value is FALSE. Exactly one of the minimum operating system boolean values will be TRUE. public bool? V5_0 { get { return BackingStore?.Get("v5_0"); } set { BackingStore?.Set("v5_0", value); } } - /// Version 5.1 or later. + /// When TRUE, only Version 5.1 or later is supported. Default value is FALSE. Exactly one of the minimum operating system boolean values will be TRUE. public bool? V5_1 { get { return BackingStore?.Get("v5_1"); } set { BackingStore?.Set("v5_1", value); } } - /// Version 6.0 or later. + /// When TRUE, only Version 6.0 or later is supported. Default value is FALSE. Exactly one of the minimum operating system boolean values will be TRUE. public bool? V6_0 { get { return BackingStore?.Get("v6_0"); } set { BackingStore?.Set("v6_0", value); } } - /// Version 7.0 or later. + /// When TRUE, only Version 7.0 or later is supported. Default value is FALSE. Exactly one of the minimum operating system boolean values will be TRUE. public bool? V7_0 { get { return BackingStore?.Get("v7_0"); } set { BackingStore?.Set("v7_0", value); } } - /// Version 7.1 or later. + /// When TRUE, only Version 7.1 or later is supported. Default value is FALSE. Exactly one of the minimum operating system boolean values will be TRUE. public bool? V7_1 { get { return BackingStore?.Get("v7_1"); } set { BackingStore?.Set("v7_1", value); } } - /// Version 8.0 or later. + /// When TRUE, only Version 8.0 or later is supported. Default value is FALSE. Exactly one of the minimum operating system boolean values will be TRUE. public bool? V8_0 { get { return BackingStore?.Get("v8_0"); } set { BackingStore?.Set("v8_0", value); } } - /// Version 8.1 or later. + /// When TRUE, only Version 8.1 or later is supported. Default value is FALSE. Exactly one of the minimum operating system boolean values will be TRUE. public bool? V8_1 { get { return BackingStore?.Get("v8_1"); } set { BackingStore?.Set("v8_1", value); } } - /// Version 9.0 or later. + /// When TRUE, only Version 9.0 or later is supported. Default value is FALSE. Exactly one of the minimum operating system boolean values will be TRUE. public bool? V9_0 { get { return BackingStore?.Get("v9_0"); } set { BackingStore?.Set("v9_0", value); } diff --git a/src/Microsoft.Graph/Generated/Models/Application.cs b/src/Microsoft.Graph/Generated/Models/Application.cs index 95b61dd3a2e..9242ceffe74 100644 --- a/src/Microsoft.Graph/Generated/Models/Application.cs +++ b/src/Microsoft.Graph/Generated/Models/Application.cs @@ -236,7 +236,7 @@ public WindowsApplication Windows { set { BackingStore?.Set("windows", value); } } /// - /// Instantiates a new application and sets the default values. + /// Instantiates a new Application and sets the default values. /// public Application() : base() { OdataType = "#microsoft.graph.application"; diff --git a/src/Microsoft.Graph/Generated/Models/AttackSimulationOperation.cs b/src/Microsoft.Graph/Generated/Models/AttackSimulationOperation.cs new file mode 100644 index 00000000000..0517c0ef203 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/AttackSimulationOperation.cs @@ -0,0 +1,53 @@ +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +namespace Microsoft.Graph.Beta.Models { + public class AttackSimulationOperation : LongRunningOperation, IParsable { + /// The percentageCompleted property + public int? PercentageCompleted { + get { return BackingStore?.Get("percentageCompleted"); } + set { BackingStore?.Set("percentageCompleted", value); } + } + /// The tenantId property + public string TenantId { + get { return BackingStore?.Get("tenantId"); } + set { BackingStore?.Set("tenantId", value); } + } + /// The type property + public AttackSimulationOperationType? Type { + get { return BackingStore?.Get("type"); } + set { BackingStore?.Set("type", value); } + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new AttackSimulationOperation CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new AttackSimulationOperation(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"percentageCompleted", n => { PercentageCompleted = n.GetIntValue(); } }, + {"tenantId", n => { TenantId = n.GetStringValue(); } }, + {"type", n => { Type = n.GetEnumValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteIntValue("percentageCompleted", PercentageCompleted); + writer.WriteStringValue("tenantId", TenantId); + writer.WriteEnumValue("type", Type); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/AttackSimulationOperationCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/AttackSimulationOperationCollectionResponse.cs new file mode 100644 index 00000000000..c8001574007 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/AttackSimulationOperationCollectionResponse.cs @@ -0,0 +1,39 @@ +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +namespace Microsoft.Graph.Beta.Models { + public class AttackSimulationOperationCollectionResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new AttackSimulationOperationCollectionResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new AttackSimulationOperationCollectionResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(AttackSimulationOperation.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/AttackSimulationOperationType.cs b/src/Microsoft.Graph/Generated/Models/AttackSimulationOperationType.cs new file mode 100644 index 00000000000..1aecade9586 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/AttackSimulationOperationType.cs @@ -0,0 +1,7 @@ +namespace Microsoft.Graph.Beta.Models { + public enum AttackSimulationOperationType { + CreateSimualation, + UpdateSimulation, + UnknownFutureValue, + } +} diff --git a/src/Microsoft.Graph/Generated/Models/AttackSimulationRoot.cs b/src/Microsoft.Graph/Generated/Models/AttackSimulationRoot.cs index 11c8ea26f77..010cf5992af 100644 --- a/src/Microsoft.Graph/Generated/Models/AttackSimulationRoot.cs +++ b/src/Microsoft.Graph/Generated/Models/AttackSimulationRoot.cs @@ -5,6 +5,16 @@ using System.Linq; namespace Microsoft.Graph.Beta.Models { public class AttackSimulationRoot : Entity, IParsable { + /// The operations property + public List Operations { + get { return BackingStore?.Get>("operations"); } + set { BackingStore?.Set("operations", value); } + } + /// The payloads property + public List Payloads { + get { return BackingStore?.Get>("payloads"); } + set { BackingStore?.Set("payloads", value); } + } /// Represents simulation automation created to run on a tenant. public List SimulationAutomations { get { return BackingStore?.Get>("simulationAutomations"); } @@ -28,6 +38,8 @@ public List Simulations { /// public new IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { + {"operations", n => { Operations = n.GetCollectionOfObjectValues(AttackSimulationOperation.CreateFromDiscriminatorValue)?.ToList(); } }, + {"payloads", n => { Payloads = n.GetCollectionOfObjectValues(Payload.CreateFromDiscriminatorValue)?.ToList(); } }, {"simulationAutomations", n => { SimulationAutomations = n.GetCollectionOfObjectValues(SimulationAutomation.CreateFromDiscriminatorValue)?.ToList(); } }, {"simulations", n => { Simulations = n.GetCollectionOfObjectValues(Simulation.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -39,6 +51,8 @@ public List Simulations { public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); + writer.WriteCollectionOfObjectValues("operations", Operations); + writer.WriteCollectionOfObjectValues("payloads", Payloads); writer.WriteCollectionOfObjectValues("simulationAutomations", SimulationAutomations); writer.WriteCollectionOfObjectValues("simulations", Simulations); } diff --git a/src/Microsoft.Graph/Generated/Models/AuditEvent.cs b/src/Microsoft.Graph/Generated/Models/AuditEvent.cs index 2c1cdb1cf43..b5cf65e687d 100644 --- a/src/Microsoft.Graph/Generated/Models/AuditEvent.cs +++ b/src/Microsoft.Graph/Generated/Models/AuditEvent.cs @@ -4,9 +4,6 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Beta.Models { - /// - /// A class containing the properties for Audit Event. - /// public class AuditEvent : Entity, IParsable { /// Friendly name of the activity. public string Activity { diff --git a/src/Microsoft.Graph/Generated/Models/AuthenticationEventListener.cs b/src/Microsoft.Graph/Generated/Models/AuthenticationEventListener.cs index 54f3ad26f2e..2499145abac 100644 --- a/src/Microsoft.Graph/Generated/Models/AuthenticationEventListener.cs +++ b/src/Microsoft.Graph/Generated/Models/AuthenticationEventListener.cs @@ -20,11 +20,6 @@ public int? Priority { get { return BackingStore?.Get("priority"); } set { BackingStore?.Set("priority", value); } } - /// The tags property - public List Tags { - get { return BackingStore?.Get>("tags"); } - set { BackingStore?.Set("tags", value); } - } /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -45,7 +40,6 @@ public List Tags { {"authenticationEventsFlowId", n => { AuthenticationEventsFlowId = n.GetStringValue(); } }, {"conditions", n => { Conditions = n.GetObjectValue(AuthenticationConditions.CreateFromDiscriminatorValue); } }, {"priority", n => { Priority = n.GetIntValue(); } }, - {"tags", n => { Tags = n.GetCollectionOfObjectValues(KeyValuePair.CreateFromDiscriminatorValue)?.ToList(); } }, }; } /// @@ -58,7 +52,6 @@ public List Tags { writer.WriteStringValue("authenticationEventsFlowId", AuthenticationEventsFlowId); writer.WriteObjectValue("conditions", Conditions); writer.WriteIntValue("priority", Priority); - writer.WriteCollectionOfObjectValues("tags", Tags); } } } diff --git a/src/Microsoft.Graph/Generated/Models/BookingCustomQuestion.cs b/src/Microsoft.Graph/Generated/Models/BookingCustomQuestion.cs index 9111b41468f..8bf8894ca69 100644 --- a/src/Microsoft.Graph/Generated/Models/BookingCustomQuestion.cs +++ b/src/Microsoft.Graph/Generated/Models/BookingCustomQuestion.cs @@ -4,9 +4,6 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Beta.Models { - /// - /// Represents a custom question of the business. - /// public class BookingCustomQuestion : Entity, IParsable { /// The expected answer type. The possible values are: text, radioButton, unknownFutureValue. public Microsoft.Graph.Beta.Models.AnswerInputType? AnswerInputType { diff --git a/src/Microsoft.Graph/Generated/Models/BookingService.cs b/src/Microsoft.Graph/Generated/Models/BookingService.cs index c5af784cdcc..a4bf51dbc7d 100644 --- a/src/Microsoft.Graph/Generated/Models/BookingService.cs +++ b/src/Microsoft.Graph/Generated/Models/BookingService.cs @@ -4,9 +4,6 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Beta.Models { - /// - /// Represents a particular service offered by a booking business. - /// public class BookingService : BookingNamedEntity, IParsable { /// Additional information that is sent to the customer when an appointment is confirmed. public string AdditionalInformation { @@ -109,7 +106,7 @@ public string WebUrl { set { BackingStore?.Set("webUrl", value); } } /// - /// Instantiates a new bookingService and sets the default values. + /// Instantiates a new BookingService and sets the default values. /// public BookingService() : base() { OdataType = "#microsoft.graph.bookingService"; diff --git a/src/Microsoft.Graph/Generated/Models/BookingStaffMember.cs b/src/Microsoft.Graph/Generated/Models/BookingStaffMember.cs index 687b8941ba6..267a49af4d8 100644 --- a/src/Microsoft.Graph/Generated/Models/BookingStaffMember.cs +++ b/src/Microsoft.Graph/Generated/Models/BookingStaffMember.cs @@ -20,6 +20,11 @@ public bool? IsEmailNotificationEnabled { get { return BackingStore?.Get("isEmailNotificationEnabled"); } set { BackingStore?.Set("isEmailNotificationEnabled", value); } } + /// The membershipStatus property + public BookingStaffMembershipStatus? MembershipStatus { + get { return BackingStore?.Get("membershipStatus"); } + set { BackingStore?.Set("membershipStatus", value); } + } /// The role property public BookingStaffRole? Role { get { return BackingStore?.Get("role"); } @@ -56,6 +61,7 @@ public List WorkingHours { {"availabilityIsAffectedByPersonalCalendar", n => { AvailabilityIsAffectedByPersonalCalendar = n.GetBoolValue(); } }, {"colorIndex", n => { ColorIndex = n.GetIntValue(); } }, {"isEmailNotificationEnabled", n => { IsEmailNotificationEnabled = n.GetBoolValue(); } }, + {"membershipStatus", n => { MembershipStatus = n.GetEnumValue(); } }, {"role", n => { Role = n.GetEnumValue(); } }, {"timeZone", n => { TimeZone = n.GetStringValue(); } }, {"useBusinessHours", n => { UseBusinessHours = n.GetBoolValue(); } }, @@ -72,6 +78,7 @@ public List WorkingHours { writer.WriteBoolValue("availabilityIsAffectedByPersonalCalendar", AvailabilityIsAffectedByPersonalCalendar); writer.WriteIntValue("colorIndex", ColorIndex); writer.WriteBoolValue("isEmailNotificationEnabled", IsEmailNotificationEnabled); + writer.WriteEnumValue("membershipStatus", MembershipStatus); writer.WriteEnumValue("role", Role); writer.WriteStringValue("timeZone", TimeZone); writer.WriteBoolValue("useBusinessHours", UseBusinessHours); diff --git a/src/Microsoft.Graph/Generated/Models/BookingStaffMembershipStatus.cs b/src/Microsoft.Graph/Generated/Models/BookingStaffMembershipStatus.cs new file mode 100644 index 00000000000..2209e79e0b1 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/BookingStaffMembershipStatus.cs @@ -0,0 +1,8 @@ +namespace Microsoft.Graph.Beta.Models { + public enum BookingStaffMembershipStatus { + Active, + PendingAcceptance, + RejectedByStaff, + UnknownFutureValue, + } +} diff --git a/src/Microsoft.Graph/Generated/Models/BusinessScenario.cs b/src/Microsoft.Graph/Generated/Models/BusinessScenario.cs index dacbd87bfde..b3b8b81ee4f 100644 --- a/src/Microsoft.Graph/Generated/Models/BusinessScenario.cs +++ b/src/Microsoft.Graph/Generated/Models/BusinessScenario.cs @@ -5,42 +5,42 @@ using System.Linq; namespace Microsoft.Graph.Beta.Models { public class BusinessScenario : Entity, IParsable { - /// The createdBy property + /// The identity of the user who created the scenario. public IdentitySet CreatedBy { get { return BackingStore?.Get("createdBy"); } set { BackingStore?.Set("createdBy", value); } } - /// The createdDateTime property + /// The date and time when the scenario was created. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. public DateTimeOffset? CreatedDateTime { get { return BackingStore?.Get("createdDateTime"); } set { BackingStore?.Set("createdDateTime", value); } } - /// The displayName property + /// Display name of the scenario. public string DisplayName { get { return BackingStore?.Get("displayName"); } set { BackingStore?.Set("displayName", value); } } - /// The lastModifiedBy property + /// The identity of the user who last modified the scenario. public IdentitySet LastModifiedBy { get { return BackingStore?.Get("lastModifiedBy"); } set { BackingStore?.Set("lastModifiedBy", value); } } - /// The lastModifiedDateTime property + /// The date and time when the scenario was last modified. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. public DateTimeOffset? LastModifiedDateTime { get { return BackingStore?.Get("lastModifiedDateTime"); } set { BackingStore?.Set("lastModifiedDateTime", value); } } - /// The ownerAppIds property + /// Identifiers of applications that are authorized to work with this scenario. public List OwnerAppIds { get { return BackingStore?.Get>("ownerAppIds"); } set { BackingStore?.Set("ownerAppIds", value); } } - /// The planner property + /// Planner content related to the scenario. public BusinessScenarioPlanner Planner { get { return BackingStore?.Get("planner"); } set { BackingStore?.Set("planner", value); } } - /// The uniqueName property + /// Unique name of the scenario. To avoid conflicts, the recommended value for the unique name is a reverse domain name format, owned by the author of the scenario. For example, a scenario authored by Contoso.com would have a unique name that starts with com.contoso. public string UniqueName { get { return BackingStore?.Get("uniqueName"); } set { BackingStore?.Set("uniqueName", value); } diff --git a/src/Microsoft.Graph/Generated/Models/BusinessScenarioGroupTarget.cs b/src/Microsoft.Graph/Generated/Models/BusinessScenarioGroupTarget.cs index 429b0829927..179d92709f0 100644 --- a/src/Microsoft.Graph/Generated/Models/BusinessScenarioGroupTarget.cs +++ b/src/Microsoft.Graph/Generated/Models/BusinessScenarioGroupTarget.cs @@ -5,7 +5,7 @@ using System.Linq; namespace Microsoft.Graph.Beta.Models { public class BusinessScenarioGroupTarget : BusinessScenarioTaskTargetBase, IParsable { - /// The groupId property + /// The unique identifier for the group. public string GroupId { get { return BackingStore?.Get("groupId"); } set { BackingStore?.Set("groupId", value); } diff --git a/src/Microsoft.Graph/Generated/Models/BusinessScenarioPlanReference.cs b/src/Microsoft.Graph/Generated/Models/BusinessScenarioPlanReference.cs index a01caf901b3..958b15b5c7d 100644 --- a/src/Microsoft.Graph/Generated/Models/BusinessScenarioPlanReference.cs +++ b/src/Microsoft.Graph/Generated/Models/BusinessScenarioPlanReference.cs @@ -5,7 +5,7 @@ using System.Linq; namespace Microsoft.Graph.Beta.Models { public class BusinessScenarioPlanReference : Entity, IParsable { - /// The title property + /// The title property of the plannerPlan. public string Title { get { return BackingStore?.Get("title"); } set { BackingStore?.Set("title", value); } diff --git a/src/Microsoft.Graph/Generated/Models/BusinessScenarioPlanner.cs b/src/Microsoft.Graph/Generated/Models/BusinessScenarioPlanner.cs index 84014577dd2..c336ddf5b23 100644 --- a/src/Microsoft.Graph/Generated/Models/BusinessScenarioPlanner.cs +++ b/src/Microsoft.Graph/Generated/Models/BusinessScenarioPlanner.cs @@ -5,17 +5,17 @@ using System.Linq; namespace Microsoft.Graph.Beta.Models { public class BusinessScenarioPlanner : Entity, IParsable { - /// The planConfiguration property + /// The configuration of Planner plans that will be created for the scenario. public PlannerPlanConfiguration PlanConfiguration { get { return BackingStore?.Get("planConfiguration"); } set { BackingStore?.Set("planConfiguration", value); } } - /// The taskConfiguration property + /// The configuration of Planner tasks that will be created for the scenario. public PlannerTaskConfiguration TaskConfiguration { get { return BackingStore?.Get("taskConfiguration"); } set { BackingStore?.Set("taskConfiguration", value); } } - /// The tasks property + /// The Planner tasks for the scenario. public List Tasks { get { return BackingStore?.Get>("tasks"); } set { BackingStore?.Set("tasks", value); } diff --git a/src/Microsoft.Graph/Generated/Models/BusinessScenarioProperties.cs b/src/Microsoft.Graph/Generated/Models/BusinessScenarioProperties.cs index 43552d73005..ef9c4a20c0f 100644 --- a/src/Microsoft.Graph/Generated/Models/BusinessScenarioProperties.cs +++ b/src/Microsoft.Graph/Generated/Models/BusinessScenarioProperties.cs @@ -13,22 +13,22 @@ public IDictionary AdditionalData { } /// Stores model information. public IBackingStore BackingStore { get; private set; } - /// The externalBucketId property + /// The identifier for the bucketDefinition configured in the plannerPlanConfiguration for the scenario. The task will be placed in the corresponding plannerBucket in the target plan. Required. public string ExternalBucketId { get { return BackingStore?.Get("externalBucketId"); } set { BackingStore?.Set("externalBucketId", value); } } - /// The externalContextId property + /// The identifier for the context of the task. Context is an application controlled value, and tasks can be queried by their externalContextId. Optional. public string ExternalContextId { get { return BackingStore?.Get("externalContextId"); } set { BackingStore?.Set("externalContextId", value); } } - /// The externalObjectId property + /// Application-specific identifier for the task. Every task for the same scenario must have a unique identifier specified for this property. Required. public string ExternalObjectId { get { return BackingStore?.Get("externalObjectId"); } set { BackingStore?.Set("externalObjectId", value); } } - /// The externalObjectVersion property + /// Application-specific version of the task. Optional. public string ExternalObjectVersion { get { return BackingStore?.Get("externalObjectVersion"); } set { BackingStore?.Set("externalObjectVersion", value); } @@ -38,7 +38,7 @@ public string OdataType { get { return BackingStore?.Get("@odata.type"); } set { BackingStore?.Set("@odata.type", value); } } - /// The webUrl property + /// The URL to the application-specific experience for this task. Optional. public string WebUrl { get { return BackingStore?.Get("webUrl"); } set { BackingStore?.Set("webUrl", value); } diff --git a/src/Microsoft.Graph/Generated/Models/BusinessScenarioTask.cs b/src/Microsoft.Graph/Generated/Models/BusinessScenarioTask.cs index c4c1bae8118..66933bad6b7 100644 --- a/src/Microsoft.Graph/Generated/Models/BusinessScenarioTask.cs +++ b/src/Microsoft.Graph/Generated/Models/BusinessScenarioTask.cs @@ -5,12 +5,12 @@ using System.Linq; namespace Microsoft.Graph.Beta.Models { public class BusinessScenarioTask : PlannerTask, IParsable { - /// The businessScenarioProperties property + /// Scenario-specific properties of the task. externalObjectId and externalBucketId properties must be specified when creating a task. public Microsoft.Graph.Beta.Models.BusinessScenarioProperties BusinessScenarioProperties { get { return BackingStore?.Get("businessScenarioProperties"); } set { BackingStore?.Set("businessScenarioProperties", value); } } - /// The target property + /// Target of the task that specifies where the task should be placed. Must be specified when creating a task. public BusinessScenarioTaskTargetBase Target { get { return BackingStore?.Get("target"); } set { BackingStore?.Set("target", value); } diff --git a/src/Microsoft.Graph/Generated/Models/CartToClassAssociation.cs b/src/Microsoft.Graph/Generated/Models/CartToClassAssociation.cs index 40bc34059d8..5607aa6a2a8 100644 --- a/src/Microsoft.Graph/Generated/Models/CartToClassAssociation.cs +++ b/src/Microsoft.Graph/Generated/Models/CartToClassAssociation.cs @@ -4,9 +4,6 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Beta.Models { - /// - /// CartToClassAssociation for associating device carts with classrooms. - /// public class CartToClassAssociation : Entity, IParsable { /// Identifiers of classrooms to be associated with device carts. public List ClassroomIds { diff --git a/src/Microsoft.Graph/Generated/Models/CertificateConnectorDetails.cs b/src/Microsoft.Graph/Generated/Models/CertificateConnectorDetails.cs index b0ff2b7a0a4..3c72161d820 100644 --- a/src/Microsoft.Graph/Generated/Models/CertificateConnectorDetails.cs +++ b/src/Microsoft.Graph/Generated/Models/CertificateConnectorDetails.cs @@ -4,9 +4,6 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Beta.Models { - /// - /// Entity used to retrieve information about Intune Certificate Connectors. - /// public class CertificateConnectorDetails : Entity, IParsable { /// Connector name (set during enrollment). public string ConnectorName { diff --git a/src/Microsoft.Graph/Generated/Models/ChromeOSOnboardingSettings.cs b/src/Microsoft.Graph/Generated/Models/ChromeOSOnboardingSettings.cs index e966f183597..9901828b54b 100644 --- a/src/Microsoft.Graph/Generated/Models/ChromeOSOnboardingSettings.cs +++ b/src/Microsoft.Graph/Generated/Models/ChromeOSOnboardingSettings.cs @@ -4,9 +4,6 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Beta.Models { - /// - /// Entity that represents a Chromebook tenant settings - /// public class ChromeOSOnboardingSettings : Entity, IParsable { /// The ChromebookTenant's LastDirectorySyncDateTime public DateTimeOffset? LastDirectorySyncDateTime { diff --git a/src/Microsoft.Graph/Generated/Models/CoachmarkLocation.cs b/src/Microsoft.Graph/Generated/Models/CoachmarkLocation.cs new file mode 100644 index 00000000000..5f79ff65e4d --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/CoachmarkLocation.cs @@ -0,0 +1,75 @@ +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +namespace Microsoft.Graph.Beta.Models { + public class CoachmarkLocation : IAdditionalDataHolder, IBackedModel, IParsable { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { + get { return BackingStore?.Get>("additionalData"); } + set { BackingStore?.Set("additionalData", value); } + } + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// The length property + public int? Length { + get { return BackingStore?.Get("length"); } + set { BackingStore?.Set("length", value); } + } + /// The OdataType property + public string OdataType { + get { return BackingStore?.Get("@odata.type"); } + set { BackingStore?.Set("@odata.type", value); } + } + /// The offset property + public int? Offset { + get { return BackingStore?.Get("offset"); } + set { BackingStore?.Set("offset", value); } + } + /// The type property + public CoachmarkLocationType? Type { + get { return BackingStore?.Get("type"); } + set { BackingStore?.Set("type", value); } + } + /// + /// Instantiates a new coachmarkLocation and sets the default values. + /// + public CoachmarkLocation() { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static CoachmarkLocation CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new CoachmarkLocation(); + } + /// + /// The deserialization information for the current model + /// + public IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"length", n => { Length = n.GetIntValue(); } }, + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, + {"offset", n => { Offset = n.GetIntValue(); } }, + {"type", n => { Type = n.GetEnumValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteIntValue("length", Length); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteIntValue("offset", Offset); + writer.WriteEnumValue("type", Type); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/CoachmarkLocationType.cs b/src/Microsoft.Graph/Generated/Models/CoachmarkLocationType.cs new file mode 100644 index 00000000000..4ce2f2db94e --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/CoachmarkLocationType.cs @@ -0,0 +1,11 @@ +namespace Microsoft.Graph.Beta.Models { + public enum CoachmarkLocationType { + Unknown, + FromEmail, + Subject, + ExternalTag, + DisplayName, + MessageBody, + UnknownFutureValue, + } +} diff --git a/src/Microsoft.Graph/Generated/Models/DataSharingConsent.cs b/src/Microsoft.Graph/Generated/Models/DataSharingConsent.cs index 3377f2f43a0..4d6fd4f51d6 100644 --- a/src/Microsoft.Graph/Generated/Models/DataSharingConsent.cs +++ b/src/Microsoft.Graph/Generated/Models/DataSharingConsent.cs @@ -4,9 +4,6 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Beta.Models { - /// - /// Data sharing consent information. - /// public class DataSharingConsent : Entity, IParsable { /// The time consent was granted for this account public DateTimeOffset? GrantDateTime { diff --git a/src/Microsoft.Graph/Generated/Models/DepEnrollmentBaseProfile.cs b/src/Microsoft.Graph/Generated/Models/DepEnrollmentBaseProfile.cs index a6d52dc6313..f89a1607a3f 100644 --- a/src/Microsoft.Graph/Generated/Models/DepEnrollmentBaseProfile.cs +++ b/src/Microsoft.Graph/Generated/Models/DepEnrollmentBaseProfile.cs @@ -35,6 +35,11 @@ public bool? DisplayToneSetupDisabled { get { return BackingStore?.Get("displayToneSetupDisabled"); } set { BackingStore?.Set("displayToneSetupDisabled", value); } } + /// enabledSkipKeys contains all the enabled skip keys as strings + public List EnabledSkipKeys { + get { return BackingStore?.Get>("enabledSkipKeys"); } + set { BackingStore?.Set("enabledSkipKeys", value); } + } /// Indicates if this is the default profile public bool? IsDefault { get { return BackingStore?.Get("isDefault"); } @@ -75,7 +80,7 @@ public bool? SiriDisabled { get { return BackingStore?.Get("siriDisabled"); } set { BackingStore?.Set("siriDisabled", value); } } - /// Supervised mode, True to enable, false otherwise. See https://learn.microsoft.com/intune/deploy-use/enroll-devices-in-microsoft-intune for additional information. + /// Supervised mode, True to enable, false otherwise. See https://learn.microsoft.com/en-us/intune/deploy-use/enroll-devices-in-microsoft-intune for additional information. public bool? SupervisedModeEnabled { get { return BackingStore?.Get("supervisedModeEnabled"); } set { BackingStore?.Set("supervisedModeEnabled", value); } @@ -130,6 +135,7 @@ public DepEnrollmentBaseProfile() : base() { {"deviceNameTemplate", n => { DeviceNameTemplate = n.GetStringValue(); } }, {"diagnosticsDisabled", n => { DiagnosticsDisabled = n.GetBoolValue(); } }, {"displayToneSetupDisabled", n => { DisplayToneSetupDisabled = n.GetBoolValue(); } }, + {"enabledSkipKeys", n => { EnabledSkipKeys = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, {"isDefault", n => { IsDefault = n.GetBoolValue(); } }, {"isMandatory", n => { IsMandatory = n.GetBoolValue(); } }, {"locationDisabled", n => { LocationDisabled = n.GetBoolValue(); } }, @@ -158,6 +164,7 @@ public DepEnrollmentBaseProfile() : base() { writer.WriteStringValue("deviceNameTemplate", DeviceNameTemplate); writer.WriteBoolValue("diagnosticsDisabled", DiagnosticsDisabled); writer.WriteBoolValue("displayToneSetupDisabled", DisplayToneSetupDisabled); + writer.WriteCollectionOfPrimitiveValues("enabledSkipKeys", EnabledSkipKeys); writer.WriteBoolValue("isDefault", IsDefault); writer.WriteBoolValue("isMandatory", IsMandatory); writer.WriteBoolValue("locationDisabled", LocationDisabled); diff --git a/src/Microsoft.Graph/Generated/Models/DepEnrollmentProfile.cs b/src/Microsoft.Graph/Generated/Models/DepEnrollmentProfile.cs index d37f7d2cc32..eaf888906b3 100644 --- a/src/Microsoft.Graph/Generated/Models/DepEnrollmentProfile.cs +++ b/src/Microsoft.Graph/Generated/Models/DepEnrollmentProfile.cs @@ -95,7 +95,7 @@ public bool? SiriDisabled { get { return BackingStore?.Get("siriDisabled"); } set { BackingStore?.Set("siriDisabled", value); } } - /// Supervised mode, True to enable, false otherwise. See https://learn.microsoft.com/intune/deploy-use/enroll-devices-in-microsoft-intune for additional information. + /// Supervised mode, True to enable, false otherwise. See https://learn.microsoft.com/en-us/intune/deploy-use/enroll-devices-in-microsoft-intune for additional information. public bool? SupervisedModeEnabled { get { return BackingStore?.Get("supervisedModeEnabled"); } set { BackingStore?.Set("supervisedModeEnabled", value); } diff --git a/src/Microsoft.Graph/Generated/Models/DepIOSEnrollmentProfile.cs b/src/Microsoft.Graph/Generated/Models/DepIOSEnrollmentProfile.cs index 2e15ea8d2ab..d03a3f9092a 100644 --- a/src/Microsoft.Graph/Generated/Models/DepIOSEnrollmentProfile.cs +++ b/src/Microsoft.Graph/Generated/Models/DepIOSEnrollmentProfile.cs @@ -125,7 +125,7 @@ public bool? UpdateCompleteScreenDisabled { get { return BackingStore?.Get("updateCompleteScreenDisabled"); } set { BackingStore?.Set("updateCompleteScreenDisabled", value); } } - /// Indicates that this apple device is designated to support 'shared device mode' scenarios. This is distinct from the 'shared iPad' scenario. See https://learn.microsoft.com/mem/intune/enrollment/device-enrollment-shared-ios + /// Indicates that this apple device is designated to support 'shared device mode' scenarios. This is distinct from the 'shared iPad' scenario. See https://learn.microsoft.com/en-us/mem/intune/enrollment/device-enrollment-shared-ios public bool? UserlessSharedAadModeEnabled { get { return BackingStore?.Get("userlessSharedAadModeEnabled"); } set { BackingStore?.Set("userlessSharedAadModeEnabled", value); } diff --git a/src/Microsoft.Graph/Generated/Models/Device.cs b/src/Microsoft.Graph/Generated/Models/Device.cs index dec2ec94035..d06a3f62dc5 100644 --- a/src/Microsoft.Graph/Generated/Models/Device.cs +++ b/src/Microsoft.Graph/Generated/Models/Device.cs @@ -221,7 +221,7 @@ public List UsageRights { set { BackingStore?.Set("usageRights", value); } } /// - /// Instantiates a new device and sets the default values. + /// Instantiates a new Device and sets the default values. /// public Device() : base() { OdataType = "#microsoft.graph.device"; diff --git a/src/Microsoft.Graph/Generated/Models/DeviceAndAppManagementAssignmentFilter.cs b/src/Microsoft.Graph/Generated/Models/DeviceAndAppManagementAssignmentFilter.cs index 73bc6056920..529e9515c2d 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceAndAppManagementAssignmentFilter.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceAndAppManagementAssignmentFilter.cs @@ -4,9 +4,6 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Beta.Models { - /// - /// A class containing the properties used for Assignment Filter. - /// public class DeviceAndAppManagementAssignmentFilter : Entity, IParsable { /// Creation time of the Assignment Filter. public DateTimeOffset? CreatedDateTime { diff --git a/src/Microsoft.Graph/Generated/Models/DeviceAppManagement.cs b/src/Microsoft.Graph/Generated/Models/DeviceAppManagement.cs index f544da7cf2a..3ef8181b30d 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceAppManagement.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceAppManagement.cs @@ -110,11 +110,6 @@ public List PolicySets { get { return BackingStore?.Get>("policySets"); } set { BackingStore?.Set("policySets", value); } } - /// Side Loading Keys that are required for the Windows 8 and 8.1 Apps installation. - public List SideLoadingKeys { - get { return BackingStore?.Get>("sideLoadingKeys"); } - set { BackingStore?.Set("sideLoadingKeys", value); } - } /// The WinPhone Symantec Code Signing Certificate. public Microsoft.Graph.Beta.Models.SymantecCodeSigningCertificate SymantecCodeSigningCertificate { get { return BackingStore?.Get("symantecCodeSigningCertificate"); } @@ -194,7 +189,6 @@ public Microsoft.Graph.Beta.Models.WindowsManagementApp WindowsManagementApp { {"mobileAppConfigurations", n => { MobileAppConfigurations = n.GetCollectionOfObjectValues(ManagedDeviceMobileAppConfiguration.CreateFromDiscriminatorValue)?.ToList(); } }, {"mobileApps", n => { MobileApps = n.GetCollectionOfObjectValues(MobileApp.CreateFromDiscriminatorValue)?.ToList(); } }, {"policySets", n => { PolicySets = n.GetCollectionOfObjectValues(PolicySet.CreateFromDiscriminatorValue)?.ToList(); } }, - {"sideLoadingKeys", n => { SideLoadingKeys = n.GetCollectionOfObjectValues(SideLoadingKey.CreateFromDiscriminatorValue)?.ToList(); } }, {"symantecCodeSigningCertificate", n => { SymantecCodeSigningCertificate = n.GetObjectValue(Microsoft.Graph.Beta.Models.SymantecCodeSigningCertificate.CreateFromDiscriminatorValue); } }, {"targetedManagedAppConfigurations", n => { TargetedManagedAppConfigurations = n.GetCollectionOfObjectValues(TargetedManagedAppConfiguration.CreateFromDiscriminatorValue)?.ToList(); } }, {"vppTokens", n => { VppTokens = n.GetCollectionOfObjectValues(VppToken.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -234,7 +228,6 @@ public Microsoft.Graph.Beta.Models.WindowsManagementApp WindowsManagementApp { writer.WriteCollectionOfObjectValues("mobileAppConfigurations", MobileAppConfigurations); writer.WriteCollectionOfObjectValues("mobileApps", MobileApps); writer.WriteCollectionOfObjectValues("policySets", PolicySets); - writer.WriteCollectionOfObjectValues("sideLoadingKeys", SideLoadingKeys); writer.WriteObjectValue("symantecCodeSigningCertificate", SymantecCodeSigningCertificate); writer.WriteCollectionOfObjectValues("targetedManagedAppConfigurations", TargetedManagedAppConfigurations); writer.WriteCollectionOfObjectValues("vppTokens", VppTokens); diff --git a/src/Microsoft.Graph/Generated/Models/DeviceCompliancePolicySettingStateSummary.cs b/src/Microsoft.Graph/Generated/Models/DeviceCompliancePolicySettingStateSummary.cs index c358e3d7474..e09aabc0fe4 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceCompliancePolicySettingStateSummary.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceCompliancePolicySettingStateSummary.cs @@ -4,9 +4,6 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Beta.Models { - /// - /// Device Compilance Policy Setting State summary across the account. - /// public class DeviceCompliancePolicySettingStateSummary : Entity, IParsable { /// Number of compliant devices public int? CompliantDeviceCount { diff --git a/src/Microsoft.Graph/Generated/Models/DeviceComplianceScript.cs b/src/Microsoft.Graph/Generated/Models/DeviceComplianceScript.cs index 941f8347e05..0d0084c228b 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceComplianceScript.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceComplianceScript.cs @@ -4,9 +4,6 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Beta.Models { - /// - /// Intune will provide customer the ability to run their Powershell Compliance scripts (detection) on the enrolled windows 10 Azure Active Directory joined devices. - /// public class DeviceComplianceScript : Entity, IParsable { /// The list of group assignments for the device compliance script public List Assignments { diff --git a/src/Microsoft.Graph/Generated/Models/DeviceConfigurationConflictSummary.cs b/src/Microsoft.Graph/Generated/Models/DeviceConfigurationConflictSummary.cs index fa78610abf2..86283c1d293 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceConfigurationConflictSummary.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceConfigurationConflictSummary.cs @@ -4,9 +4,6 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Beta.Models { - /// - /// Conflict summary for a set of device configuration policies. - /// public class DeviceConfigurationConflictSummary : Entity, IParsable { /// The set of policies in conflict with the given setting public List ConflictingDeviceConfigurations { diff --git a/src/Microsoft.Graph/Generated/Models/DeviceEventLevel.cs b/src/Microsoft.Graph/Generated/Models/DeviceEventLevel.cs new file mode 100644 index 00000000000..966c7c6f243 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/DeviceEventLevel.cs @@ -0,0 +1,19 @@ +namespace Microsoft.Graph.Beta.Models { + /// Indicates device event level. Possible values are: None, Verbose, Information, Warning, Error, Critical + public enum DeviceEventLevel { + /// Indicates that the device event level is none. + None, + /// Indicates that the device event level is verbose. + Verbose, + /// Indicates that the device event level is information. + Information, + /// Indicates that the device event level is warning. + Warning, + /// Indicates that the device event level is error. + Error, + /// Indicates that the device event level is critical. + Critical, + /// Placeholder value for future expansion. + UnknownFutureValue, + } +} diff --git a/src/Microsoft.Graph/Generated/Models/DeviceManagement/DeviceManagement.cs b/src/Microsoft.Graph/Generated/Models/DeviceManagement/DeviceManagement.cs index a3c7cf2c9cf..3e2b3febe4d 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceManagement/DeviceManagement.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceManagement/DeviceManagement.cs @@ -740,6 +740,11 @@ public List>("userExperienceAnalyticsDevicesWithoutCloudIdentity"); } set { BackingStore?.Set("userExperienceAnalyticsDevicesWithoutCloudIdentity", value); } } + /// The user experience analytics device events entity contains NRT device timeline events details. + public List UserExperienceAnalyticsDeviceTimelineEvents { + get { return BackingStore?.Get>("userExperienceAnalyticsDeviceTimelineEvents"); } + set { BackingStore?.Set("userExperienceAnalyticsDeviceTimelineEvents", value); } + } /// User experience analytics impacting process public List UserExperienceAnalyticsImpactingProcess { get { return BackingStore?.Get>("userExperienceAnalyticsImpactingProcess"); } @@ -1040,6 +1045,7 @@ public List ZebraFotaDeployment {"userExperienceAnalyticsDeviceStartupProcesses", n => { UserExperienceAnalyticsDeviceStartupProcesses = n.GetCollectionOfObjectValues(Microsoft.Graph.Beta.Models.UserExperienceAnalyticsDeviceStartupProcess.CreateFromDiscriminatorValue)?.ToList(); } }, {"userExperienceAnalyticsDeviceStartupProcessPerformance", n => { UserExperienceAnalyticsDeviceStartupProcessPerformance = n.GetCollectionOfObjectValues(Microsoft.Graph.Beta.Models.UserExperienceAnalyticsDeviceStartupProcessPerformance.CreateFromDiscriminatorValue)?.ToList(); } }, {"userExperienceAnalyticsDevicesWithoutCloudIdentity", n => { UserExperienceAnalyticsDevicesWithoutCloudIdentity = n.GetCollectionOfObjectValues(Microsoft.Graph.Beta.Models.UserExperienceAnalyticsDeviceWithoutCloudIdentity.CreateFromDiscriminatorValue)?.ToList(); } }, + {"userExperienceAnalyticsDeviceTimelineEvents", n => { UserExperienceAnalyticsDeviceTimelineEvents = n.GetCollectionOfObjectValues(Microsoft.Graph.Beta.Models.UserExperienceAnalyticsDeviceTimelineEvents.CreateFromDiscriminatorValue)?.ToList(); } }, {"userExperienceAnalyticsImpactingProcess", n => { UserExperienceAnalyticsImpactingProcess = n.GetCollectionOfObjectValues(Microsoft.Graph.Beta.Models.UserExperienceAnalyticsImpactingProcess.CreateFromDiscriminatorValue)?.ToList(); } }, {"userExperienceAnalyticsMetricHistory", n => { UserExperienceAnalyticsMetricHistory = n.GetCollectionOfObjectValues(Microsoft.Graph.Beta.Models.UserExperienceAnalyticsMetricHistory.CreateFromDiscriminatorValue)?.ToList(); } }, {"userExperienceAnalyticsModelScores", n => { UserExperienceAnalyticsModelScores = n.GetCollectionOfObjectValues(Microsoft.Graph.Beta.Models.UserExperienceAnalyticsModelScores.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -1220,6 +1226,7 @@ public List ZebraFotaDeployment writer.WriteCollectionOfObjectValues("userExperienceAnalyticsDeviceStartupProcesses", UserExperienceAnalyticsDeviceStartupProcesses); writer.WriteCollectionOfObjectValues("userExperienceAnalyticsDeviceStartupProcessPerformance", UserExperienceAnalyticsDeviceStartupProcessPerformance); writer.WriteCollectionOfObjectValues("userExperienceAnalyticsDevicesWithoutCloudIdentity", UserExperienceAnalyticsDevicesWithoutCloudIdentity); + writer.WriteCollectionOfObjectValues("userExperienceAnalyticsDeviceTimelineEvents", UserExperienceAnalyticsDeviceTimelineEvents); writer.WriteCollectionOfObjectValues("userExperienceAnalyticsImpactingProcess", UserExperienceAnalyticsImpactingProcess); writer.WriteCollectionOfObjectValues("userExperienceAnalyticsMetricHistory", UserExperienceAnalyticsMetricHistory); writer.WriteCollectionOfObjectValues("userExperienceAnalyticsModelScores", UserExperienceAnalyticsModelScores); diff --git a/src/Microsoft.Graph/Generated/Models/DeviceManagementAutopilotEvent.cs b/src/Microsoft.Graph/Generated/Models/DeviceManagementAutopilotEvent.cs index 736c48271b0..812d58e4be5 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceManagementAutopilotEvent.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceManagementAutopilotEvent.cs @@ -4,9 +4,6 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Beta.Models { - /// - /// Represents an Autopilot flow event. - /// public class DeviceManagementAutopilotEvent : Entity, IParsable { /// Time spent in user ESP. public TimeSpan? AccountSetupDuration { diff --git a/src/Microsoft.Graph/Generated/Models/DeviceManagementConfigurationPolicy.cs b/src/Microsoft.Graph/Generated/Models/DeviceManagementConfigurationPolicy.cs index 89ed8ef5a91..7a696f648e4 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceManagementConfigurationPolicy.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceManagementConfigurationPolicy.cs @@ -4,9 +4,6 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Beta.Models { - /// - /// Device Management Configuration Policy - /// public class DeviceManagementConfigurationPolicy : Entity, IParsable { /// Policy assignments public List Assignments { diff --git a/src/Microsoft.Graph/Generated/Models/DeviceManagementConfigurationPolicyTemplate.cs b/src/Microsoft.Graph/Generated/Models/DeviceManagementConfigurationPolicyTemplate.cs index 4a482a19c94..4f7d16d9c1e 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceManagementConfigurationPolicyTemplate.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceManagementConfigurationPolicyTemplate.cs @@ -4,9 +4,6 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Beta.Models { - /// - /// Device Management Configuration Policy Template - /// public class DeviceManagementConfigurationPolicyTemplate : Entity, IParsable { /// Allow unmanaged setting templates public bool? AllowUnmanagedSettings { diff --git a/src/Microsoft.Graph/Generated/Models/DeviceManagementExchangeOnPremisesPolicy.cs b/src/Microsoft.Graph/Generated/Models/DeviceManagementExchangeOnPremisesPolicy.cs index 1eb47e0eb11..9894b7386bf 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceManagementExchangeOnPremisesPolicy.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceManagementExchangeOnPremisesPolicy.cs @@ -4,9 +4,6 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Beta.Models { - /// - /// Singleton entity which represents the Exchange OnPremises policy configured for a tenant. - /// public class DeviceManagementExchangeOnPremisesPolicy : Entity, IParsable { /// The list of device access rules in Exchange. The access rules apply globally to the entire Exchange organization public List AccessRules { diff --git a/src/Microsoft.Graph/Generated/Models/DeviceManagementResourceAccessProfileBase.cs b/src/Microsoft.Graph/Generated/Models/DeviceManagementResourceAccessProfileBase.cs index eced39d42bb..b0c61f49ac8 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceManagementResourceAccessProfileBase.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceManagementResourceAccessProfileBase.cs @@ -4,9 +4,6 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Beta.Models { - /// - /// Base Profile Type for Resource Access - /// public class DeviceManagementResourceAccessProfileBase : Entity, IParsable { /// The list of assignments for the device configuration profile. public List Assignments { diff --git a/src/Microsoft.Graph/Generated/Models/DeviceManagementScript.cs b/src/Microsoft.Graph/Generated/Models/DeviceManagementScript.cs index da77c349b55..27683a20ebf 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceManagementScript.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceManagementScript.cs @@ -4,9 +4,6 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Beta.Models { - /// - /// 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. - /// public class DeviceManagementScript : Entity, IParsable { /// The list of group assignments for the device management script. public List Assignments { diff --git a/src/Microsoft.Graph/Generated/Models/DeviceShellScript.cs b/src/Microsoft.Graph/Generated/Models/DeviceShellScript.cs index 5f8b0f843bf..efd44c3ecee 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceShellScript.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceShellScript.cs @@ -4,9 +4,6 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Beta.Models { - /// - /// Intune will provide customer the ability to run their Shell scripts on the enrolled Mac OS devices. The script can be run once or periodically. - /// public class DeviceShellScript : Entity, IParsable { /// The list of group assignments for the device management script. public List Assignments { diff --git a/src/Microsoft.Graph/Generated/Models/Ediscovery/NoncustodialDataSource.cs b/src/Microsoft.Graph/Generated/Models/Ediscovery/NoncustodialDataSource.cs index 55059bc8f2a..3c3c696beb0 100644 --- a/src/Microsoft.Graph/Generated/Models/Ediscovery/NoncustodialDataSource.cs +++ b/src/Microsoft.Graph/Generated/Models/Ediscovery/NoncustodialDataSource.cs @@ -16,7 +16,7 @@ public Microsoft.Graph.Beta.Models.Ediscovery.DataSource DataSource { set { BackingStore?.Set("dataSource", value); } } /// - /// Instantiates a new noncustodialDataSource and sets the default values. + /// Instantiates a new NoncustodialDataSource and sets the default values. /// public NoncustodialDataSource() : base() { OdataType = "#microsoft.graph.ediscovery.noncustodialDataSource"; diff --git a/src/Microsoft.Graph/Generated/Models/EligibilityFilteringEnabledEntities.cs b/src/Microsoft.Graph/Generated/Models/EligibilityFilteringEnabledEntities.cs index 01f145007b0..86d25e7034e 100644 --- a/src/Microsoft.Graph/Generated/Models/EligibilityFilteringEnabledEntities.cs +++ b/src/Microsoft.Graph/Generated/Models/EligibilityFilteringEnabledEntities.cs @@ -4,5 +4,6 @@ public enum EligibilityFilteringEnabledEntities { SwapRequest, OfferShiftRequest, UnknownFutureValue, + TimeOffReason, } } diff --git a/src/Microsoft.Graph/Generated/Models/EmailPayloadDetail.cs b/src/Microsoft.Graph/Generated/Models/EmailPayloadDetail.cs new file mode 100644 index 00000000000..e078b0f4d79 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/EmailPayloadDetail.cs @@ -0,0 +1,66 @@ +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +namespace Microsoft.Graph.Beta.Models { + public class EmailPayloadDetail : PayloadDetail, IParsable { + /// The fromEmail property + public string FromEmail { + get { return BackingStore?.Get("fromEmail"); } + set { BackingStore?.Set("fromEmail", value); } + } + /// The fromName property + public string FromName { + get { return BackingStore?.Get("fromName"); } + set { BackingStore?.Set("fromName", value); } + } + /// The isExternalSender property + public bool? IsExternalSender { + get { return BackingStore?.Get("isExternalSender"); } + set { BackingStore?.Set("isExternalSender", value); } + } + /// The subject property + public string Subject { + get { return BackingStore?.Get("subject"); } + set { BackingStore?.Set("subject", value); } + } + /// + /// Instantiates a new EmailPayloadDetail and sets the default values. + /// + public EmailPayloadDetail() : base() { + OdataType = "#microsoft.graph.emailPayloadDetail"; + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new EmailPayloadDetail CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new EmailPayloadDetail(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"fromEmail", n => { FromEmail = n.GetStringValue(); } }, + {"fromName", n => { FromName = n.GetStringValue(); } }, + {"isExternalSender", n => { IsExternalSender = n.GetBoolValue(); } }, + {"subject", n => { Subject = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteStringValue("fromEmail", FromEmail); + writer.WriteStringValue("fromName", FromName); + writer.WriteBoolValue("isExternalSender", IsExternalSender); + writer.WriteStringValue("subject", Subject); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/EmbeddedSIMActivationCodePool.cs b/src/Microsoft.Graph/Generated/Models/EmbeddedSIMActivationCodePool.cs index 1171a93b095..3eab6284ffa 100644 --- a/src/Microsoft.Graph/Generated/Models/EmbeddedSIMActivationCodePool.cs +++ b/src/Microsoft.Graph/Generated/Models/EmbeddedSIMActivationCodePool.cs @@ -4,9 +4,6 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Beta.Models { - /// - /// A pool represents a group of embedded SIM activation codes. - /// public class EmbeddedSIMActivationCodePool : Entity, IParsable { /// The total count of activation codes which belong to this pool. public int? ActivationCodeCount { diff --git a/src/Microsoft.Graph/Generated/Models/EnrollmentProfile.cs b/src/Microsoft.Graph/Generated/Models/EnrollmentProfile.cs index 049891c7d9f..371007dcc49 100644 --- a/src/Microsoft.Graph/Generated/Models/EnrollmentProfile.cs +++ b/src/Microsoft.Graph/Generated/Models/EnrollmentProfile.cs @@ -4,6 +4,9 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Beta.Models { + /// + /// 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. + /// public class EnrollmentProfile : Entity, IParsable { /// Configuration endpoint url to use for Enrollment public string ConfigurationEndpointUrl { diff --git a/src/Microsoft.Graph/Generated/Models/EnrollmentRestrictionPlatformType.cs b/src/Microsoft.Graph/Generated/Models/EnrollmentRestrictionPlatformType.cs index 412e076b94a..d570fa01ac4 100644 --- a/src/Microsoft.Graph/Generated/Models/EnrollmentRestrictionPlatformType.cs +++ b/src/Microsoft.Graph/Generated/Models/EnrollmentRestrictionPlatformType.cs @@ -1,19 +1,23 @@ namespace Microsoft.Graph.Beta.Models { /// This enum indicates the platform type for which the enrollment restriction applies. public enum EnrollmentRestrictionPlatformType { - /// Applies to all platforms + /// Indicates that the enrollment configuration applies to all platforms AllPlatforms, - /// iOS/iPadOS devices + /// Indicates that the enrollment configuration applies only to iOS/iPadOS devices Ios, - /// Windows devices + /// Indicates that the enrollment configuration applies only to Windows devices Windows, - /// Windows Phone devices + /// Indicates that the enrollment configuration applies only to Windows Phone devices WindowsPhone, - /// Android devices + /// Indicates that the enrollment configuration applies only to Android devices Android, - /// Android for Work devices + /// Indicates that the enrollment configuration applies only to Android for Work devices AndroidForWork, - /// macOS devices + /// Indicates that the enrollment configuration applies only to macOS devices Mac, + /// Indicates that the enrollment configuration applies only to Linux devices + Linux, + /// Evolvable enumeration sentinel value. Do not use + UnknownFutureValue, } } diff --git a/src/Microsoft.Graph/Generated/Models/Entity.cs b/src/Microsoft.Graph/Generated/Models/Entity.cs index 5795d10b45f..2add185bd30 100644 --- a/src/Microsoft.Graph/Generated/Models/Entity.cs +++ b/src/Microsoft.Graph/Generated/Models/Entity.cs @@ -204,6 +204,7 @@ public static Entity CreateFromDiscriminatorValue(IParseNode parseNode) { "#microsoft.graph.attachment" => new Attachment(), "#microsoft.graph.attachmentBase" => new AttachmentBase(), "#microsoft.graph.attachmentSession" => new AttachmentSession(), + "#microsoft.graph.attackSimulationOperation" => new AttackSimulationOperation(), "#microsoft.graph.attackSimulationRoot" => new AttackSimulationRoot(), "#microsoft.graph.attendanceRecord" => new AttendanceRecord(), "#microsoft.graph.attributeMappingFunctionSchema" => new AttributeMappingFunctionSchema(), @@ -977,6 +978,7 @@ public static Entity CreateFromDiscriminatorValue(IParseNode parseNode) { "#microsoft.graph.participantLeftNotification" => new ParticipantLeftNotification(), "#microsoft.graph.passwordAuthenticationMethod" => new PasswordAuthenticationMethod(), "#microsoft.graph.passwordlessMicrosoftAuthenticatorAuthenticationMethod" => new PasswordlessMicrosoftAuthenticatorAuthenticationMethod(), + "#microsoft.graph.payload" => new Payload(), "#microsoft.graph.payloadCompatibleAssignmentFilter" => new PayloadCompatibleAssignmentFilter(), "#microsoft.graph.payloadResponse" => new PayloadResponse(), "#microsoft.graph.paymentMethod" => new PaymentMethod(), @@ -1040,6 +1042,17 @@ public static Entity CreateFromDiscriminatorValue(IParseNode parseNode) { "#microsoft.graph.printUsageByPrinter" => new PrintUsageByPrinter(), "#microsoft.graph.printUsageByUser" => new PrintUsageByUser(), "#microsoft.graph.privilegedAccess" => new PrivilegedAccess(), + "#microsoft.graph.privilegedAccessGroup" => new PrivilegedAccessGroup(), + "#microsoft.graph.privilegedAccessGroupAssignmentSchedule" => new PrivilegedAccessGroupAssignmentSchedule(), + "#microsoft.graph.privilegedAccessGroupAssignmentScheduleInstance" => new PrivilegedAccessGroupAssignmentScheduleInstance(), + "#microsoft.graph.privilegedAccessGroupAssignmentScheduleRequest" => new PrivilegedAccessGroupAssignmentScheduleRequest(), + "#microsoft.graph.privilegedAccessGroupEligibilitySchedule" => new PrivilegedAccessGroupEligibilitySchedule(), + "#microsoft.graph.privilegedAccessGroupEligibilityScheduleInstance" => new PrivilegedAccessGroupEligibilityScheduleInstance(), + "#microsoft.graph.privilegedAccessGroupEligibilityScheduleRequest" => new PrivilegedAccessGroupEligibilityScheduleRequest(), + "#microsoft.graph.privilegedAccessRoot" => new PrivilegedAccessRoot(), + "#microsoft.graph.privilegedAccessSchedule" => new PrivilegedAccessSchedule(), + "#microsoft.graph.privilegedAccessScheduleInstance" => new PrivilegedAccessScheduleInstance(), + "#microsoft.graph.privilegedAccessScheduleRequest" => new PrivilegedAccessScheduleRequest(), "#microsoft.graph.privilegedApproval" => new PrivilegedApproval(), "#microsoft.graph.privilegedOperationEvent" => new PrivilegedOperationEvent(), "#microsoft.graph.privilegedRole" => new PrivilegedRole(), @@ -1198,7 +1211,6 @@ public static Entity CreateFromDiscriminatorValue(IParseNode parseNode) { "#microsoft.graph.shift" => new Shift(), "#microsoft.graph.shiftPreferences" => new ShiftPreferences(), "#microsoft.graph.shipmentMethod" => new ShipmentMethod(), - "#microsoft.graph.sideLoadingKey" => new SideLoadingKey(), "#microsoft.graph.signIn" => new SignIn(), "#microsoft.graph.simulation" => new Simulation(), "#microsoft.graph.simulationAutomation" => new SimulationAutomation(), @@ -1267,7 +1279,6 @@ public static Entity CreateFromDiscriminatorValue(IParseNode parseNode) { "#microsoft.graph.tenantAdmin.sharepoint" => new Microsoft.Graph.Beta.Models.TenantAdmin.Sharepoint(), "#microsoft.graph.tenantAppManagementPolicy" => new TenantAppManagementPolicy(), "#microsoft.graph.tenantAttachRBAC" => new TenantAttachRBAC(), - "#microsoft.graph.tenantRelationship" => new TenantRelationship(), "#microsoft.graph.tenantRelationshipAccessPolicyBase" => new TenantRelationshipAccessPolicyBase(), "#microsoft.graph.tenantSetupInfo" => new TenantSetupInfo(), "#microsoft.graph.termsAndConditions" => new TermsAndConditions(), @@ -1364,6 +1375,7 @@ public static Entity CreateFromDiscriminatorValue(IParseNode parseNode) { "#microsoft.graph.userExperienceAnalyticsDeviceStartupHistory" => new UserExperienceAnalyticsDeviceStartupHistory(), "#microsoft.graph.userExperienceAnalyticsDeviceStartupProcess" => new UserExperienceAnalyticsDeviceStartupProcess(), "#microsoft.graph.userExperienceAnalyticsDeviceStartupProcessPerformance" => new UserExperienceAnalyticsDeviceStartupProcessPerformance(), + "#microsoft.graph.userExperienceAnalyticsDeviceTimelineEvents" => new UserExperienceAnalyticsDeviceTimelineEvents(), "#microsoft.graph.userExperienceAnalyticsDeviceWithoutCloudIdentity" => new UserExperienceAnalyticsDeviceWithoutCloudIdentity(), "#microsoft.graph.userExperienceAnalyticsImpactingProcess" => new UserExperienceAnalyticsImpactingProcess(), "#microsoft.graph.userExperienceAnalyticsMetric" => new UserExperienceAnalyticsMetric(), diff --git a/src/Microsoft.Graph/Generated/Models/GroupPolicyCategory.cs b/src/Microsoft.Graph/Generated/Models/GroupPolicyCategory.cs index 1ca173775e4..103cc316f91 100644 --- a/src/Microsoft.Graph/Generated/Models/GroupPolicyCategory.cs +++ b/src/Microsoft.Graph/Generated/Models/GroupPolicyCategory.cs @@ -4,9 +4,6 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Beta.Models { - /// - /// The category entity stores the category of a group policy definition - /// public class GroupPolicyCategory : Entity, IParsable { /// The children categories public List Children { diff --git a/src/Microsoft.Graph/Generated/Models/GroupPolicyDefinition.cs b/src/Microsoft.Graph/Generated/Models/GroupPolicyDefinition.cs index 716f0b75b19..8eb6c3309af 100644 --- a/src/Microsoft.Graph/Generated/Models/GroupPolicyDefinition.cs +++ b/src/Microsoft.Graph/Generated/Models/GroupPolicyDefinition.cs @@ -4,9 +4,6 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Beta.Models { - /// - /// The entity describes all of the information about a single group policy. - /// public class GroupPolicyDefinition : Entity, IParsable { /// The group policy category associated with the definition. public GroupPolicyCategory Category { diff --git a/src/Microsoft.Graph/Generated/Models/GroupPolicyDefinitionValue.cs b/src/Microsoft.Graph/Generated/Models/GroupPolicyDefinitionValue.cs index cfeeefe946a..56b4a77d00e 100644 --- a/src/Microsoft.Graph/Generated/Models/GroupPolicyDefinitionValue.cs +++ b/src/Microsoft.Graph/Generated/Models/GroupPolicyDefinitionValue.cs @@ -4,9 +4,6 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Beta.Models { - /// - /// The definition value entity stores the value for a single group policy definition. - /// public class GroupPolicyDefinitionValue : Entity, IParsable { /// Group Policy Configuration Type public GroupPolicyConfigurationType? ConfigurationType { diff --git a/src/Microsoft.Graph/Generated/Models/GroupPolicyMigrationReport.cs b/src/Microsoft.Graph/Generated/Models/GroupPolicyMigrationReport.cs index b4b9c2d85f3..3e8e2651811 100644 --- a/src/Microsoft.Graph/Generated/Models/GroupPolicyMigrationReport.cs +++ b/src/Microsoft.Graph/Generated/Models/GroupPolicyMigrationReport.cs @@ -4,9 +4,6 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Beta.Models { - /// - /// The Group Policy migration report. - /// public class GroupPolicyMigrationReport : Entity, IParsable { /// The date and time at which the GroupPolicyMigrationReport was created. public DateTimeOffset? CreatedDateTime { diff --git a/src/Microsoft.Graph/Generated/Models/GroupPolicyObjectFile.cs b/src/Microsoft.Graph/Generated/Models/GroupPolicyObjectFile.cs index b563a84e284..2523094085f 100644 --- a/src/Microsoft.Graph/Generated/Models/GroupPolicyObjectFile.cs +++ b/src/Microsoft.Graph/Generated/Models/GroupPolicyObjectFile.cs @@ -4,9 +4,6 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Beta.Models { - /// - /// The Group Policy Object file uploaded by admin. - /// public class GroupPolicyObjectFile : Entity, IParsable { /// The Group Policy Object file content. public string Content { diff --git a/src/Microsoft.Graph/Generated/Models/Identity.cs b/src/Microsoft.Graph/Generated/Models/Identity.cs index 64d119f99f1..685fb820a51 100644 --- a/src/Microsoft.Graph/Generated/Models/Identity.cs +++ b/src/Microsoft.Graph/Generated/Models/Identity.cs @@ -14,12 +14,12 @@ public IDictionary AdditionalData { } /// Stores model information. public IBackingStore BackingStore { get; private set; } - /// The display name of the identity. This property is read-only. + /// The display name of the identity. Note that this might not always be available or up to date. For example, if a user changes their display name, the API might show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. public string DisplayName { get { return BackingStore?.Get("displayName"); } set { BackingStore?.Set("displayName", value); } } - /// The identifier of the identity. This property is read-only. + /// Unique identifier for the identity. public string Id { get { return BackingStore?.Get("id"); } set { BackingStore?.Set("id", value); } diff --git a/src/Microsoft.Graph/Generated/Models/IdentityGovernance/IdentityGovernance.cs b/src/Microsoft.Graph/Generated/Models/IdentityGovernance/IdentityGovernance.cs index bcd56b0170e..1cabe651eb7 100644 --- a/src/Microsoft.Graph/Generated/Models/IdentityGovernance/IdentityGovernance.cs +++ b/src/Microsoft.Graph/Generated/Models/IdentityGovernance/IdentityGovernance.cs @@ -38,6 +38,11 @@ public string OdataType { get { return BackingStore?.Get("@odata.type"); } set { BackingStore?.Set("@odata.type", value); } } + /// The privilegedAccess property + public Microsoft.Graph.Beta.Models.PrivilegedAccessRoot PrivilegedAccess { + get { return BackingStore?.Get("privilegedAccess"); } + set { BackingStore?.Set("privilegedAccess", value); } + } /// The termsOfUse property public Microsoft.Graph.Beta.Models.TermsOfUseContainer TermsOfUse { get { return BackingStore?.Get("termsOfUse"); } @@ -68,6 +73,7 @@ public IDictionary> GetFieldDeserializers() { {"entitlementManagement", n => { EntitlementManagement = n.GetObjectValue(Microsoft.Graph.Beta.Models.EntitlementManagement.CreateFromDiscriminatorValue); } }, {"lifecycleWorkflows", n => { LifecycleWorkflows = n.GetObjectValue(LifecycleWorkflowsContainer.CreateFromDiscriminatorValue); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, + {"privilegedAccess", n => { PrivilegedAccess = n.GetObjectValue(Microsoft.Graph.Beta.Models.PrivilegedAccessRoot.CreateFromDiscriminatorValue); } }, {"termsOfUse", n => { TermsOfUse = n.GetObjectValue(Microsoft.Graph.Beta.Models.TermsOfUseContainer.CreateFromDiscriminatorValue); } }, }; } @@ -82,6 +88,7 @@ public void Serialize(ISerializationWriter writer) { writer.WriteObjectValue("entitlementManagement", EntitlementManagement); writer.WriteObjectValue("lifecycleWorkflows", LifecycleWorkflows); writer.WriteStringValue("@odata.type", OdataType); + writer.WriteObjectValue("privilegedAccess", PrivilegedAccess); writer.WriteObjectValue("termsOfUse", TermsOfUse); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Microsoft.Graph/Generated/Models/ImportedDeviceIdentity.cs b/src/Microsoft.Graph/Generated/Models/ImportedDeviceIdentity.cs index aaca0e05ae5..2c2c303d4e6 100644 --- a/src/Microsoft.Graph/Generated/Models/ImportedDeviceIdentity.cs +++ b/src/Microsoft.Graph/Generated/Models/ImportedDeviceIdentity.cs @@ -4,9 +4,6 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Beta.Models { - /// - /// The importedDeviceIdentity resource represents a unique hardware identity of a device that has been pre-staged for pre-enrollment configuration. - /// public class ImportedDeviceIdentity : Entity, IParsable { /// Created Date Time of the device public DateTimeOffset? CreatedDateTime { diff --git a/src/Microsoft.Graph/Generated/Models/ImportedWindowsAutopilotDeviceIdentity.cs b/src/Microsoft.Graph/Generated/Models/ImportedWindowsAutopilotDeviceIdentity.cs index 06572f4a9b2..f1b2bdd90c0 100644 --- a/src/Microsoft.Graph/Generated/Models/ImportedWindowsAutopilotDeviceIdentity.cs +++ b/src/Microsoft.Graph/Generated/Models/ImportedWindowsAutopilotDeviceIdentity.cs @@ -4,9 +4,6 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Beta.Models { - /// - /// Imported windows autopilot devices. - /// public class ImportedWindowsAutopilotDeviceIdentity : Entity, IParsable { /// UPN of the user the device will be assigned public string AssignedUserPrincipalName { diff --git a/src/Microsoft.Graph/Generated/Models/IncludeAllAccountTargetContent.cs b/src/Microsoft.Graph/Generated/Models/IncludeAllAccountTargetContent.cs new file mode 100644 index 00000000000..57767481e07 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/IncludeAllAccountTargetContent.cs @@ -0,0 +1,38 @@ +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +namespace Microsoft.Graph.Beta.Models { + public class IncludeAllAccountTargetContent : AccountTargetContent, IParsable { + /// + /// Instantiates a new IncludeAllAccountTargetContent and sets the default values. + /// + public IncludeAllAccountTargetContent() : base() { + OdataType = "#microsoft.graph.includeAllAccountTargetContent"; + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new IncludeAllAccountTargetContent CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new IncludeAllAccountTargetContent(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/IntuneBrandingProfile.cs b/src/Microsoft.Graph/Generated/Models/IntuneBrandingProfile.cs index bd1749cd697..f58c10a479c 100644 --- a/src/Microsoft.Graph/Generated/Models/IntuneBrandingProfile.cs +++ b/src/Microsoft.Graph/Generated/Models/IntuneBrandingProfile.cs @@ -4,9 +4,6 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Beta.Models { - /// - /// 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. - /// public class IntuneBrandingProfile : Entity, IParsable { /// The list of group assignments for the branding profile public List Assignments { diff --git a/src/Microsoft.Graph/Generated/Models/IosLobApp.cs b/src/Microsoft.Graph/Generated/Models/IosLobApp.cs index a04fea61037..7feeaaff09e 100644 --- a/src/Microsoft.Graph/Generated/Models/IosLobApp.cs +++ b/src/Microsoft.Graph/Generated/Models/IosLobApp.cs @@ -25,11 +25,6 @@ public DateTimeOffset? ExpirationDateTime { get { return BackingStore?.Get("expirationDateTime"); } set { BackingStore?.Set("expirationDateTime", value); } } - /// The identity version. This property is being deprecated in 2211(November 2022) - public string IdentityVersion { - get { return BackingStore?.Get("identityVersion"); } - set { BackingStore?.Set("identityVersion", value); } - } /// The value for the minimum applicable operating system. public IosMinimumOperatingSystem MinimumSupportedOperatingSystem { get { return BackingStore?.Get("minimumSupportedOperatingSystem"); } @@ -63,7 +58,6 @@ public IosLobApp() : base() { {"buildNumber", n => { BuildNumber = n.GetStringValue(); } }, {"bundleId", n => { BundleId = n.GetStringValue(); } }, {"expirationDateTime", n => { ExpirationDateTime = n.GetDateTimeOffsetValue(); } }, - {"identityVersion", n => { IdentityVersion = n.GetStringValue(); } }, {"minimumSupportedOperatingSystem", n => { MinimumSupportedOperatingSystem = n.GetObjectValue(IosMinimumOperatingSystem.CreateFromDiscriminatorValue); } }, {"versionNumber", n => { VersionNumber = n.GetStringValue(); } }, }; @@ -79,7 +73,6 @@ public IosLobApp() : base() { writer.WriteStringValue("buildNumber", BuildNumber); writer.WriteStringValue("bundleId", BundleId); writer.WriteDateTimeOffsetValue("expirationDateTime", ExpirationDateTime); - writer.WriteStringValue("identityVersion", IdentityVersion); writer.WriteObjectValue("minimumSupportedOperatingSystem", MinimumSupportedOperatingSystem); writer.WriteStringValue("versionNumber", VersionNumber); } diff --git a/src/Microsoft.Graph/Generated/Models/IosMinimumOperatingSystem.cs b/src/Microsoft.Graph/Generated/Models/IosMinimumOperatingSystem.cs index e590a4ed004..bedfdb3da59 100644 --- a/src/Microsoft.Graph/Generated/Models/IosMinimumOperatingSystem.cs +++ b/src/Microsoft.Graph/Generated/Models/IosMinimumOperatingSystem.cs @@ -21,42 +21,42 @@ public string OdataType { get { return BackingStore?.Get("@odata.type"); } set { BackingStore?.Set("@odata.type", value); } } - /// Version 10.0 or later. + /// When TRUE, only Version 10.0 or later is supported. Default value is FALSE. Exactly one of the minimum operating system boolean values will be TRUE. public bool? V10_0 { get { return BackingStore?.Get("v10_0"); } set { BackingStore?.Set("v10_0", value); } } - /// Version 11.0 or later. + /// When TRUE, only Version 11.0 or later is supported. Default value is FALSE. Exactly one of the minimum operating system boolean values will be TRUE. public bool? V11_0 { get { return BackingStore?.Get("v11_0"); } set { BackingStore?.Set("v11_0", value); } } - /// Version 12.0 or later. + /// When TRUE, only Version 12.0 or later is supported. Default value is FALSE. Exactly one of the minimum operating system boolean values will be TRUE. public bool? V12_0 { get { return BackingStore?.Get("v12_0"); } set { BackingStore?.Set("v12_0", value); } } - /// Version 13.0 or later. + /// When TRUE, only Version 13.0 or later is supported. Default value is FALSE. Exactly one of the minimum operating system boolean values will be TRUE. public bool? V13_0 { get { return BackingStore?.Get("v13_0"); } set { BackingStore?.Set("v13_0", value); } } - /// Version 14.0 or later. + /// When TRUE, only Version 14.0 or later is supported. Default value is FALSE. Exactly one of the minimum operating system boolean values will be TRUE. public bool? V14_0 { get { return BackingStore?.Get("v14_0"); } set { BackingStore?.Set("v14_0", value); } } - /// Version 15.0 or later. + /// When TRUE, only Version 15.0 or later is supported. Default value is FALSE. Exactly one of the minimum operating system boolean values will be TRUE. public bool? V15_0 { get { return BackingStore?.Get("v15_0"); } set { BackingStore?.Set("v15_0", value); } } - /// Version 8.0 or later. + /// When TRUE, only Version 8.0 or later is supported. Default value is FALSE. Exactly one of the minimum operating system boolean values will be TRUE. public bool? V8_0 { get { return BackingStore?.Get("v8_0"); } set { BackingStore?.Set("v8_0", value); } } - /// Version 9.0 or later. + /// When TRUE, only Version 9.0 or later is supported. Default value is FALSE. Exactly one of the minimum operating system boolean values will be TRUE. public bool? V9_0 { get { return BackingStore?.Get("v9_0"); } set { BackingStore?.Set("v9_0", value); } diff --git a/src/Microsoft.Graph/Generated/Models/LongRunningOperation.cs b/src/Microsoft.Graph/Generated/Models/LongRunningOperation.cs index 39ec5568823..6340de10226 100644 --- a/src/Microsoft.Graph/Generated/Models/LongRunningOperation.cs +++ b/src/Microsoft.Graph/Generated/Models/LongRunningOperation.cs @@ -38,6 +38,7 @@ public string StatusDetail { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); var mappingValue = parseNode.GetChildNode("@odata.type")?.GetStringValue(); return mappingValue switch { + "#microsoft.graph.attackSimulationOperation" => new AttackSimulationOperation(), "#microsoft.graph.richLongRunningOperation" => new RichLongRunningOperation(), _ => new LongRunningOperation(), }; diff --git a/src/Microsoft.Graph/Generated/Models/MacOsLobAppAssignmentSettings.cs b/src/Microsoft.Graph/Generated/Models/MacOsLobAppAssignmentSettings.cs index c444d182389..e98c91c3a6d 100644 --- a/src/Microsoft.Graph/Generated/Models/MacOsLobAppAssignmentSettings.cs +++ b/src/Microsoft.Graph/Generated/Models/MacOsLobAppAssignmentSettings.cs @@ -5,7 +5,7 @@ using System.Linq; namespace Microsoft.Graph.Beta.Models { public class MacOsLobAppAssignmentSettings : MobileAppAssignmentSettings, IParsable { - /// Whether or not to uninstall the app when device is removed from Intune. + /// When TRUE, indicates that the app should be uninstalled when the device is removed from Intune. When FALSE, indicates that the app will not be uninstalled when the device is removed from Intune. public bool? UninstallOnDeviceRemoval { get { return BackingStore?.Get("uninstallOnDeviceRemoval"); } set { BackingStore?.Set("uninstallOnDeviceRemoval", value); } diff --git a/src/Microsoft.Graph/Generated/Models/ManagedAppRegistration.cs b/src/Microsoft.Graph/Generated/Models/ManagedAppRegistration.cs index 33cbb262edc..87fd40ce7e7 100644 --- a/src/Microsoft.Graph/Generated/Models/ManagedAppRegistration.cs +++ b/src/Microsoft.Graph/Generated/Models/ManagedAppRegistration.cs @@ -4,9 +4,6 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Beta.Models { - /// - /// The ManagedAppEntity is the base entity type for all other entity types under app management workflow. - /// public class ManagedAppRegistration : Entity, IParsable { /// The app package Identifier public MobileAppIdentifier AppIdentifier { diff --git a/src/Microsoft.Graph/Generated/Models/ManagedDevice.cs b/src/Microsoft.Graph/Generated/Models/ManagedDevice.cs index 65b088d6177..e2e901e25b1 100644 --- a/src/Microsoft.Graph/Generated/Models/ManagedDevice.cs +++ b/src/Microsoft.Graph/Generated/Models/ManagedDevice.cs @@ -13,7 +13,7 @@ public bool? AadRegistered { get { return BackingStore?.Get("aadRegistered"); } set { BackingStore?.Set("aadRegistered", value); } } - /// Code that allows the Activation Lock on a device to be bypassed. This property is read-only. + /// The code that allows the Activation Lock on managed device to be bypassed. Default, is Null (Non-Default property) for this property when returned as part of managedDevice entity in LIST call. Individual GET call with select query options is needed to retrieve actual values. Supports: $select. $Search is not supported. Read-only. This property is read-only. public string ActivationLockBypassCode { get { return BackingStore?.Get("activationLockBypassCode"); } set { BackingStore?.Set("activationLockBypassCode", value); } @@ -183,7 +183,7 @@ public string EnrollmentProfileName { get { return BackingStore?.Get("enrollmentProfileName"); } set { BackingStore?.Set("enrollmentProfileName", value); } } - /// Ethernet MAC. This property is read-only. + /// Ethernet MAC. Default, is Null (Non-Default property) for this property when returned as part of managedDevice entity. Individual get call with select query options is needed to retrieve actual values. Example: deviceManagement/managedDevices({managedDeviceId})?$select=ethernetMacAddress Supports: $select. $Search is not supported. Read-only. This property is read-only. public string EthernetMacAddress { get { return BackingStore?.Get("ethernetMacAddress"); } set { BackingStore?.Set("ethernetMacAddress", value); } @@ -393,7 +393,7 @@ public string SkuFamily { get { return BackingStore?.Get("skuFamily"); } set { BackingStore?.Set("skuFamily", value); } } - /// Device sku number, see also: https://learn.microsoft.com/windows/win32/api/sysinfoapi/nf-sysinfoapi-getproductinfo. Valid values 0 to 2147483647. This property is read-only. + /// Device sku number, see also: https://learn.microsoft.com/en-us/windows/win32/api/sysinfoapi/nf-sysinfoapi-getproductinfo. Valid values 0 to 2147483647. This property is read-only. public int? SkuNumber { get { return BackingStore?.Get("skuNumber"); } set { BackingStore?.Set("skuNumber", value); } diff --git a/src/Microsoft.Graph/Generated/Models/MicrosoftTunnelSite.cs b/src/Microsoft.Graph/Generated/Models/MicrosoftTunnelSite.cs index 0ec8a7d5df3..967a75962b1 100644 --- a/src/Microsoft.Graph/Generated/Models/MicrosoftTunnelSite.cs +++ b/src/Microsoft.Graph/Generated/Models/MicrosoftTunnelSite.cs @@ -19,11 +19,6 @@ public string DisplayName { get { return BackingStore?.Get("displayName"); } set { BackingStore?.Set("displayName", value); } } - /// When set to true, certificate pinning will be enforced on connections between the Microsoft Tunnel server and Microsoft Tunnel clients. When set to false, certificate pinning will be disabled. - public bool? EnableCertificatePinning { - get { return BackingStore?.Get("enableCertificatePinning"); } - set { BackingStore?.Set("enableCertificatePinning", value); } - } /// The site's Internal Network Access Probe URL public string InternalNetworkProbeUrl { get { return BackingStore?.Get("internalNetworkProbeUrl"); } @@ -89,7 +84,6 @@ public int? UpgradeWindowUtcOffsetInMinutes { return new Dictionary>(base.GetFieldDeserializers()) { {"description", n => { Description = n.GetStringValue(); } }, {"displayName", n => { DisplayName = n.GetStringValue(); } }, - {"enableCertificatePinning", n => { EnableCertificatePinning = n.GetBoolValue(); } }, {"internalNetworkProbeUrl", n => { InternalNetworkProbeUrl = n.GetStringValue(); } }, {"microsoftTunnelConfiguration", n => { MicrosoftTunnelConfiguration = n.GetObjectValue(Microsoft.Graph.Beta.Models.MicrosoftTunnelConfiguration.CreateFromDiscriminatorValue); } }, {"microsoftTunnelServers", n => { MicrosoftTunnelServers = n.GetCollectionOfObjectValues(MicrosoftTunnelServer.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -111,7 +105,6 @@ public int? UpgradeWindowUtcOffsetInMinutes { base.Serialize(writer); writer.WriteStringValue("description", Description); writer.WriteStringValue("displayName", DisplayName); - writer.WriteBoolValue("enableCertificatePinning", EnableCertificatePinning); writer.WriteStringValue("internalNetworkProbeUrl", InternalNetworkProbeUrl); writer.WriteObjectValue("microsoftTunnelConfiguration", MicrosoftTunnelConfiguration); writer.WriteCollectionOfObjectValues("microsoftTunnelServers", MicrosoftTunnelServers); diff --git a/src/Microsoft.Graph/Generated/Models/MobileApp.cs b/src/Microsoft.Graph/Generated/Models/MobileApp.cs index 6fcf9658e2c..4981caac535 100644 --- a/src/Microsoft.Graph/Generated/Models/MobileApp.cs +++ b/src/Microsoft.Graph/Generated/Models/MobileApp.cs @@ -4,6 +4,9 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Beta.Models { + /// + /// An abstract class containing the base properties for Intune mobile apps. + /// public class MobileApp : Entity, IParsable { /// The list of group assignments for this mobile app. public List Assignments { diff --git a/src/Microsoft.Graph/Generated/Models/ObjectIdentity.cs b/src/Microsoft.Graph/Generated/Models/ObjectIdentity.cs index 60e53c44072..7b143b62428 100644 --- a/src/Microsoft.Graph/Generated/Models/ObjectIdentity.cs +++ b/src/Microsoft.Graph/Generated/Models/ObjectIdentity.cs @@ -18,7 +18,7 @@ public string Issuer { get { return BackingStore?.Get("issuer"); } set { BackingStore?.Set("issuer", value); } } - /// Specifies the unique identifier assigned to the user by the issuer. The combination of issuer and issuerAssignedId must be unique within the organization. Represents the sign-in name for the user, when signInType is set to emailAddress or userName (also known as local accounts).When signInType is set to: emailAddress, (or a custom string that starts with emailAddress like emailAddress1) issuerAssignedId must be a valid email addressuserName, issuerAssignedId must be a valid local part of an email addressSupports $filter. 100 character limit. + /// Specifies the unique identifier assigned to the user by the issuer. The combination of issuer and issuerAssignedId must be unique within the organization. Represents the sign-in name for the user, when signInType is set to emailAddress or userName (also known as local accounts).When signInType is set to: emailAddress, (or a custom string that starts with emailAddress like emailAddress1) issuerAssignedId must be a valid email addressuserName, issuerAssignedId must begin with an alphabetical character or number, and can only contain alphanumeric characters and the following symbols: - or Supports $filter. 64 character limit. public string IssuerAssignedId { get { return BackingStore?.Get("issuerAssignedId"); } set { BackingStore?.Set("issuerAssignedId", value); } diff --git a/src/Microsoft.Graph/Generated/Models/OnlineMeeting.cs b/src/Microsoft.Graph/Generated/Models/OnlineMeeting.cs index 60dbd638933..b99fd4915ec 100644 --- a/src/Microsoft.Graph/Generated/Models/OnlineMeeting.cs +++ b/src/Microsoft.Graph/Generated/Models/OnlineMeeting.cs @@ -165,6 +165,11 @@ public Microsoft.Graph.Beta.Models.VirtualAppointment VirtualAppointment { get { return BackingStore?.Get("virtualAppointment"); } set { BackingStore?.Set("virtualAppointment", value); } } + /// The watermarkProtection property + public WatermarkProtectionValues WatermarkProtection { + get { return BackingStore?.Get("watermarkProtection"); } + set { BackingStore?.Set("watermarkProtection", value); } + } /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -210,6 +215,7 @@ public Microsoft.Graph.Beta.Models.VirtualAppointment VirtualAppointment { {"transcripts", n => { Transcripts = n.GetCollectionOfObjectValues(CallTranscript.CreateFromDiscriminatorValue)?.ToList(); } }, {"videoTeleconferenceId", n => { VideoTeleconferenceId = n.GetStringValue(); } }, {"virtualAppointment", n => { VirtualAppointment = n.GetObjectValue(Microsoft.Graph.Beta.Models.VirtualAppointment.CreateFromDiscriminatorValue); } }, + {"watermarkProtection", n => { WatermarkProtection = n.GetObjectValue(WatermarkProtectionValues.CreateFromDiscriminatorValue); } }, }; } /// @@ -251,6 +257,7 @@ public Microsoft.Graph.Beta.Models.VirtualAppointment VirtualAppointment { writer.WriteCollectionOfObjectValues("transcripts", Transcripts); writer.WriteStringValue("videoTeleconferenceId", VideoTeleconferenceId); writer.WriteObjectValue("virtualAppointment", VirtualAppointment); + writer.WriteObjectValue("watermarkProtection", WatermarkProtection); } } } diff --git a/src/Microsoft.Graph/Generated/Models/OnlineMeetingContentSharingDisabledReason.cs b/src/Microsoft.Graph/Generated/Models/OnlineMeetingContentSharingDisabledReason.cs new file mode 100644 index 00000000000..3c6872fdcb6 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/OnlineMeetingContentSharingDisabledReason.cs @@ -0,0 +1,6 @@ +namespace Microsoft.Graph.Beta.Models { + public enum OnlineMeetingContentSharingDisabledReason { + WatermarkProtection, + UnknownFutureValue, + } +} diff --git a/src/Microsoft.Graph/Generated/Models/OnlineMeetingRestricted.cs b/src/Microsoft.Graph/Generated/Models/OnlineMeetingRestricted.cs new file mode 100644 index 00000000000..fa5028b55e9 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/OnlineMeetingRestricted.cs @@ -0,0 +1,68 @@ +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +namespace Microsoft.Graph.Beta.Models { + public class OnlineMeetingRestricted : IAdditionalDataHolder, IBackedModel, IParsable { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { + get { return BackingStore?.Get>("additionalData"); } + set { BackingStore?.Set("additionalData", value); } + } + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// The contentSharingDisabled property + public OnlineMeetingContentSharingDisabledReason? ContentSharingDisabled { + get { return BackingStore?.Get("contentSharingDisabled"); } + set { BackingStore?.Set("contentSharingDisabled", value); } + } + /// The OdataType property + public string OdataType { + get { return BackingStore?.Get("@odata.type"); } + set { BackingStore?.Set("@odata.type", value); } + } + /// The videoDisabled property + public OnlineMeetingVideoDisabledReason? VideoDisabled { + get { return BackingStore?.Get("videoDisabled"); } + set { BackingStore?.Set("videoDisabled", value); } + } + /// + /// Instantiates a new onlineMeetingRestricted and sets the default values. + /// + public OnlineMeetingRestricted() { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static OnlineMeetingRestricted CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new OnlineMeetingRestricted(); + } + /// + /// The deserialization information for the current model + /// + public IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"contentSharingDisabled", n => { ContentSharingDisabled = n.GetEnumValue(); } }, + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, + {"videoDisabled", n => { VideoDisabled = n.GetEnumValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteEnumValue("contentSharingDisabled", ContentSharingDisabled); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteEnumValue("videoDisabled", VideoDisabled); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/OnlineMeetingVideoDisabledReason.cs b/src/Microsoft.Graph/Generated/Models/OnlineMeetingVideoDisabledReason.cs new file mode 100644 index 00000000000..57113a05f66 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/OnlineMeetingVideoDisabledReason.cs @@ -0,0 +1,6 @@ +namespace Microsoft.Graph.Beta.Models { + public enum OnlineMeetingVideoDisabledReason { + WatermarkProtection, + UnknownFutureValue, + } +} diff --git a/src/Microsoft.Graph/Generated/Models/OrgContact.cs b/src/Microsoft.Graph/Generated/Models/OrgContact.cs index 90597926a3d..82b5d566ba9 100644 --- a/src/Microsoft.Graph/Generated/Models/OrgContact.cs +++ b/src/Microsoft.Graph/Generated/Models/OrgContact.cs @@ -101,7 +101,7 @@ public List TransitiveReports { set { BackingStore?.Set("transitiveReports", value); } } /// - /// Instantiates a new orgContact and sets the default values. + /// Instantiates a new OrgContact and sets the default values. /// public OrgContact() : base() { OdataType = "#microsoft.graph.orgContact"; diff --git a/src/Microsoft.Graph/Generated/Models/Organization.cs b/src/Microsoft.Graph/Generated/Models/Organization.cs index 6053c7bd985..ecba18bbf92 100644 --- a/src/Microsoft.Graph/Generated/Models/Organization.cs +++ b/src/Microsoft.Graph/Generated/Models/Organization.cs @@ -95,6 +95,11 @@ public bool? OnPremisesSyncEnabled { get { return BackingStore?.Get("onPremisesSyncEnabled"); } set { BackingStore?.Set("onPremisesSyncEnabled", value); } } + /// The partnerTenantType property + public Microsoft.Graph.Beta.Models.PartnerTenantType? PartnerTenantType { + get { return BackingStore?.Get("partnerTenantType"); } + set { BackingStore?.Set("partnerTenantType", value); } + } /// Postal code of the address for the organization. public string PostalCode { get { return BackingStore?.Get("postalCode"); } @@ -187,6 +192,7 @@ public Organization() : base() { {"mobileDeviceManagementAuthority", n => { MobileDeviceManagementAuthority = n.GetEnumValue(); } }, {"onPremisesLastSyncDateTime", n => { OnPremisesLastSyncDateTime = n.GetDateTimeOffsetValue(); } }, {"onPremisesSyncEnabled", n => { OnPremisesSyncEnabled = n.GetBoolValue(); } }, + {"partnerTenantType", n => { PartnerTenantType = n.GetEnumValue(); } }, {"postalCode", n => { PostalCode = n.GetStringValue(); } }, {"preferredLanguage", n => { PreferredLanguage = n.GetStringValue(); } }, {"privacyProfile", n => { PrivacyProfile = n.GetObjectValue(Microsoft.Graph.Beta.Models.PrivacyProfile.CreateFromDiscriminatorValue); } }, @@ -225,6 +231,7 @@ public Organization() : base() { writer.WriteEnumValue("mobileDeviceManagementAuthority", MobileDeviceManagementAuthority); writer.WriteDateTimeOffsetValue("onPremisesLastSyncDateTime", OnPremisesLastSyncDateTime); writer.WriteBoolValue("onPremisesSyncEnabled", OnPremisesSyncEnabled); + writer.WriteEnumValue("partnerTenantType", PartnerTenantType); writer.WriteStringValue("postalCode", PostalCode); writer.WriteStringValue("preferredLanguage", PreferredLanguage); writer.WriteObjectValue("privacyProfile", PrivacyProfile); diff --git a/src/Microsoft.Graph/Generated/Models/Participant.cs b/src/Microsoft.Graph/Generated/Models/Participant.cs index 18d074ad057..556eaddc546 100644 --- a/src/Microsoft.Graph/Generated/Models/Participant.cs +++ b/src/Microsoft.Graph/Generated/Models/Participant.cs @@ -40,6 +40,11 @@ public Microsoft.Graph.Beta.Models.RecordingInfo RecordingInfo { get { return BackingStore?.Get("recordingInfo"); } set { BackingStore?.Set("recordingInfo", value); } } + /// The restrictedExperience property + public OnlineMeetingRestricted RestrictedExperience { + get { return BackingStore?.Get("restrictedExperience"); } + set { BackingStore?.Set("restrictedExperience", value); } + } /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -60,6 +65,7 @@ public Microsoft.Graph.Beta.Models.RecordingInfo RecordingInfo { {"mediaStreams", n => { MediaStreams = n.GetCollectionOfObjectValues(MediaStream.CreateFromDiscriminatorValue)?.ToList(); } }, {"metadata", n => { Metadata = n.GetStringValue(); } }, {"recordingInfo", n => { RecordingInfo = n.GetObjectValue(Microsoft.Graph.Beta.Models.RecordingInfo.CreateFromDiscriminatorValue); } }, + {"restrictedExperience", n => { RestrictedExperience = n.GetObjectValue(OnlineMeetingRestricted.CreateFromDiscriminatorValue); } }, }; } /// @@ -76,6 +82,7 @@ public Microsoft.Graph.Beta.Models.RecordingInfo RecordingInfo { writer.WriteCollectionOfObjectValues("mediaStreams", MediaStreams); writer.WriteStringValue("metadata", Metadata); writer.WriteObjectValue("recordingInfo", RecordingInfo); + writer.WriteObjectValue("restrictedExperience", RestrictedExperience); } } } diff --git a/src/Microsoft.Graph/Generated/Models/PartnerTenantType.cs b/src/Microsoft.Graph/Generated/Models/PartnerTenantType.cs new file mode 100644 index 00000000000..58deb63834d --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/PartnerTenantType.cs @@ -0,0 +1,11 @@ +namespace Microsoft.Graph.Beta.Models { + public enum PartnerTenantType { + MicrosoftSupport, + SyndicatePartner, + BreadthPartner, + BreadthPartnerDelegatedAdmin, + ResellerPartnerDelegatedAdmin, + ValueAddedResellerPartnerDelegatedAdmin, + UnknownFutureValue, + } +} diff --git a/src/Microsoft.Graph/Generated/Models/PasswordProfile.cs b/src/Microsoft.Graph/Generated/Models/PasswordProfile.cs index a534e55e5f9..f7a1dd54e1c 100644 --- a/src/Microsoft.Graph/Generated/Models/PasswordProfile.cs +++ b/src/Microsoft.Graph/Generated/Models/PasswordProfile.cs @@ -13,7 +13,7 @@ public IDictionary AdditionalData { } /// Stores model information. public IBackingStore BackingStore { get; private set; } - /// true if the user must change her password on the next login; otherwise false. If not set, default is false. NOTE: For Azure B2C tenants, set to false and instead use custom policies and user flows to force password reset at first sign in. See Force password reset at first logon. + /// true if the user must change her password on the next login; otherwise false. If not set, default is false. public bool? ForceChangePasswordNextSignIn { get { return BackingStore?.Get("forceChangePasswordNextSignIn"); } set { BackingStore?.Set("forceChangePasswordNextSignIn", value); } diff --git a/src/Microsoft.Graph/Generated/Models/Payload.cs b/src/Microsoft.Graph/Generated/Models/Payload.cs new file mode 100644 index 00000000000..6eef13c81fb --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/Payload.cs @@ -0,0 +1,186 @@ +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +namespace Microsoft.Graph.Beta.Models { + public class Payload : Entity, IParsable { + /// The brand property + public PayloadBrand? Brand { + get { return BackingStore?.Get("brand"); } + set { BackingStore?.Set("brand", value); } + } + /// The complexity property + public PayloadComplexity? Complexity { + get { return BackingStore?.Get("complexity"); } + set { BackingStore?.Set("complexity", value); } + } + /// The createdBy property + public EmailIdentity CreatedBy { + get { return BackingStore?.Get("createdBy"); } + set { BackingStore?.Set("createdBy", value); } + } + /// The createdDateTime property + public DateTimeOffset? CreatedDateTime { + get { return BackingStore?.Get("createdDateTime"); } + set { BackingStore?.Set("createdDateTime", value); } + } + /// The description property + public string Description { + get { return BackingStore?.Get("description"); } + set { BackingStore?.Set("description", value); } + } + /// The detail property + public PayloadDetail Detail { + get { return BackingStore?.Get("detail"); } + set { BackingStore?.Set("detail", value); } + } + /// The displayName property + public string DisplayName { + get { return BackingStore?.Get("displayName"); } + set { BackingStore?.Set("displayName", value); } + } + /// The industry property + public PayloadIndustry? Industry { + get { return BackingStore?.Get("industry"); } + set { BackingStore?.Set("industry", value); } + } + /// The isAutomated property + public bool? IsAutomated { + get { return BackingStore?.Get("isAutomated"); } + set { BackingStore?.Set("isAutomated", value); } + } + /// The isControversial property + public bool? IsControversial { + get { return BackingStore?.Get("isControversial"); } + set { BackingStore?.Set("isControversial", value); } + } + /// The isCurrentEvent property + public bool? IsCurrentEvent { + get { return BackingStore?.Get("isCurrentEvent"); } + set { BackingStore?.Set("isCurrentEvent", value); } + } + /// The language property + public string Language { + get { return BackingStore?.Get("language"); } + set { BackingStore?.Set("language", value); } + } + /// The lastModifiedBy property + public EmailIdentity LastModifiedBy { + get { return BackingStore?.Get("lastModifiedBy"); } + set { BackingStore?.Set("lastModifiedBy", value); } + } + /// The lastModifiedDateTime property + public DateTimeOffset? LastModifiedDateTime { + get { return BackingStore?.Get("lastModifiedDateTime"); } + set { BackingStore?.Set("lastModifiedDateTime", value); } + } + /// The payloadTags property + public List PayloadTags { + get { return BackingStore?.Get>("payloadTags"); } + set { BackingStore?.Set("payloadTags", value); } + } + /// The platform property + public PayloadDeliveryPlatform? Platform { + get { return BackingStore?.Get("platform"); } + set { BackingStore?.Set("platform", value); } + } + /// The predictedCompromiseRate property + public double? PredictedCompromiseRate { + get { return BackingStore?.Get("predictedCompromiseRate"); } + set { BackingStore?.Set("predictedCompromiseRate", value); } + } + /// The simulationAttackType property + public Microsoft.Graph.Beta.Models.SimulationAttackType? SimulationAttackType { + get { return BackingStore?.Get("simulationAttackType"); } + set { BackingStore?.Set("simulationAttackType", value); } + } + /// The source property + public SimulationContentSource? Source { + get { return BackingStore?.Get("source"); } + set { BackingStore?.Set("source", value); } + } + /// The status property + public SimulationContentStatus? Status { + get { return BackingStore?.Get("status"); } + set { BackingStore?.Set("status", value); } + } + /// The technique property + public SimulationAttackTechnique? Technique { + get { return BackingStore?.Get("technique"); } + set { BackingStore?.Set("technique", value); } + } + /// The theme property + public PayloadTheme? Theme { + get { return BackingStore?.Get("theme"); } + set { BackingStore?.Set("theme", value); } + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new Payload CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new Payload(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"brand", n => { Brand = n.GetEnumValue(); } }, + {"complexity", n => { Complexity = n.GetEnumValue(); } }, + {"createdBy", n => { CreatedBy = n.GetObjectValue(EmailIdentity.CreateFromDiscriminatorValue); } }, + {"createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, + {"description", n => { Description = n.GetStringValue(); } }, + {"detail", n => { Detail = n.GetObjectValue(PayloadDetail.CreateFromDiscriminatorValue); } }, + {"displayName", n => { DisplayName = n.GetStringValue(); } }, + {"industry", n => { Industry = n.GetEnumValue(); } }, + {"isAutomated", n => { IsAutomated = n.GetBoolValue(); } }, + {"isControversial", n => { IsControversial = n.GetBoolValue(); } }, + {"isCurrentEvent", n => { IsCurrentEvent = n.GetBoolValue(); } }, + {"language", n => { Language = n.GetStringValue(); } }, + {"lastModifiedBy", n => { LastModifiedBy = n.GetObjectValue(EmailIdentity.CreateFromDiscriminatorValue); } }, + {"lastModifiedDateTime", n => { LastModifiedDateTime = n.GetDateTimeOffsetValue(); } }, + {"payloadTags", n => { PayloadTags = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + {"platform", n => { Platform = n.GetEnumValue(); } }, + {"predictedCompromiseRate", n => { PredictedCompromiseRate = n.GetDoubleValue(); } }, + {"simulationAttackType", n => { SimulationAttackType = n.GetEnumValue(); } }, + {"source", n => { Source = n.GetEnumValue(); } }, + {"status", n => { Status = n.GetEnumValue(); } }, + {"technique", n => { Technique = n.GetEnumValue(); } }, + {"theme", n => { Theme = n.GetEnumValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteEnumValue("brand", Brand); + writer.WriteEnumValue("complexity", Complexity); + writer.WriteObjectValue("createdBy", CreatedBy); + writer.WriteDateTimeOffsetValue("createdDateTime", CreatedDateTime); + writer.WriteStringValue("description", Description); + writer.WriteObjectValue("detail", Detail); + writer.WriteStringValue("displayName", DisplayName); + writer.WriteEnumValue("industry", Industry); + writer.WriteBoolValue("isAutomated", IsAutomated); + writer.WriteBoolValue("isControversial", IsControversial); + writer.WriteBoolValue("isCurrentEvent", IsCurrentEvent); + writer.WriteStringValue("language", Language); + writer.WriteObjectValue("lastModifiedBy", LastModifiedBy); + writer.WriteDateTimeOffsetValue("lastModifiedDateTime", LastModifiedDateTime); + writer.WriteCollectionOfPrimitiveValues("payloadTags", PayloadTags); + writer.WriteEnumValue("platform", Platform); + writer.WriteDoubleValue("predictedCompromiseRate", PredictedCompromiseRate); + writer.WriteEnumValue("simulationAttackType", SimulationAttackType); + writer.WriteEnumValue("source", Source); + writer.WriteEnumValue("status", Status); + writer.WriteEnumValue("technique", Technique); + writer.WriteEnumValue("theme", Theme); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/PayloadBrand.cs b/src/Microsoft.Graph/Generated/Models/PayloadBrand.cs new file mode 100644 index 00000000000..ee6b7672483 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/PayloadBrand.cs @@ -0,0 +1,25 @@ +namespace Microsoft.Graph.Beta.Models { + public enum PayloadBrand { + Unknown, + Other, + AmericanExpress, + CapitalOne, + Dhl, + DocuSign, + Dropbox, + Facebook, + FirstAmerican, + Microsoft, + Netflix, + Scotiabank, + SendGrid, + StewartTitle, + Tesco, + WellsFargo, + SyrinxCloud, + Adobe, + Teams, + Zoom, + UnknownFutureValue, + } +} diff --git a/src/Microsoft.Graph/Generated/Models/PayloadCoachmark.cs b/src/Microsoft.Graph/Generated/Models/PayloadCoachmark.cs new file mode 100644 index 00000000000..33621730309 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/PayloadCoachmark.cs @@ -0,0 +1,96 @@ +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +namespace Microsoft.Graph.Beta.Models { + public class PayloadCoachmark : IAdditionalDataHolder, IBackedModel, IParsable { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { + get { return BackingStore?.Get>("additionalData"); } + set { BackingStore?.Set("additionalData", value); } + } + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// The coachmarkLocation property + public Microsoft.Graph.Beta.Models.CoachmarkLocation CoachmarkLocation { + get { return BackingStore?.Get("coachmarkLocation"); } + set { BackingStore?.Set("coachmarkLocation", value); } + } + /// The description property + public string Description { + get { return BackingStore?.Get("description"); } + set { BackingStore?.Set("description", value); } + } + /// The indicator property + public string Indicator { + get { return BackingStore?.Get("indicator"); } + set { BackingStore?.Set("indicator", value); } + } + /// The isValid property + public bool? IsValid { + get { return BackingStore?.Get("isValid"); } + set { BackingStore?.Set("isValid", value); } + } + /// The language property + public string Language { + get { return BackingStore?.Get("language"); } + set { BackingStore?.Set("language", value); } + } + /// The OdataType property + public string OdataType { + get { return BackingStore?.Get("@odata.type"); } + set { BackingStore?.Set("@odata.type", value); } + } + /// The order property + public string Order { + get { return BackingStore?.Get("order"); } + set { BackingStore?.Set("order", value); } + } + /// + /// Instantiates a new payloadCoachmark and sets the default values. + /// + public PayloadCoachmark() { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static PayloadCoachmark CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new PayloadCoachmark(); + } + /// + /// The deserialization information for the current model + /// + public IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"coachmarkLocation", n => { CoachmarkLocation = n.GetObjectValue(Microsoft.Graph.Beta.Models.CoachmarkLocation.CreateFromDiscriminatorValue); } }, + {"description", n => { Description = n.GetStringValue(); } }, + {"indicator", n => { Indicator = n.GetStringValue(); } }, + {"isValid", n => { IsValid = n.GetBoolValue(); } }, + {"language", n => { Language = n.GetStringValue(); } }, + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, + {"order", n => { Order = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteObjectValue("coachmarkLocation", CoachmarkLocation); + writer.WriteStringValue("description", Description); + writer.WriteStringValue("indicator", Indicator); + writer.WriteBoolValue("isValid", IsValid); + writer.WriteStringValue("language", Language); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteStringValue("order", Order); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/PayloadCoachmarkCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/PayloadCoachmarkCollectionResponse.cs new file mode 100644 index 00000000000..2ccf8178343 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/PayloadCoachmarkCollectionResponse.cs @@ -0,0 +1,39 @@ +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +namespace Microsoft.Graph.Beta.Models { + public class PayloadCoachmarkCollectionResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new PayloadCoachmarkCollectionResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new PayloadCoachmarkCollectionResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(PayloadCoachmark.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/SideLoadingKeyCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/PayloadCollectionResponse.cs similarity index 71% rename from src/Microsoft.Graph/Generated/Models/SideLoadingKeyCollectionResponse.cs rename to src/Microsoft.Graph/Generated/Models/PayloadCollectionResponse.cs index d130329fb84..42841543df6 100644 --- a/src/Microsoft.Graph/Generated/Models/SideLoadingKeyCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/PayloadCollectionResponse.cs @@ -4,26 +4,26 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Beta.Models { - public class SideLoadingKeyCollectionResponse : BaseCollectionPaginationCountResponse, IParsable { + public class PayloadCollectionResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property - public List Value { - get { return BackingStore?.Get>("value"); } + public List Value { + get { return BackingStore?.Get>("value"); } set { BackingStore?.Set("value", value); } } /// /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static new SideLoadingKeyCollectionResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new PayloadCollectionResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SideLoadingKeyCollectionResponse(); + return new PayloadCollectionResponse(); } /// /// The deserialization information for the current model /// public new IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfObjectValues(SideLoadingKey.CreateFromDiscriminatorValue)?.ToList(); } }, + {"value", n => { Value = n.GetCollectionOfObjectValues(Payload.CreateFromDiscriminatorValue)?.ToList(); } }, }; } /// @@ -33,7 +33,7 @@ public List Value { public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } diff --git a/src/Microsoft.Graph/Generated/Models/PayloadComplexity.cs b/src/Microsoft.Graph/Generated/Models/PayloadComplexity.cs new file mode 100644 index 00000000000..1f66fbbfe0a --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/PayloadComplexity.cs @@ -0,0 +1,9 @@ +namespace Microsoft.Graph.Beta.Models { + public enum PayloadComplexity { + Unknown, + Low, + Medium, + High, + UnknownFutureValue, + } +} diff --git a/src/Microsoft.Graph/Generated/Models/PayloadDetail.cs b/src/Microsoft.Graph/Generated/Models/PayloadDetail.cs new file mode 100644 index 00000000000..278abcfadba --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/PayloadDetail.cs @@ -0,0 +1,79 @@ +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +namespace Microsoft.Graph.Beta.Models { + public class PayloadDetail : IAdditionalDataHolder, IBackedModel, IParsable { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { + get { return BackingStore?.Get>("additionalData"); } + set { BackingStore?.Set("additionalData", value); } + } + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// The coachmarks property + public List Coachmarks { + get { return BackingStore?.Get>("coachmarks"); } + set { BackingStore?.Set("coachmarks", value); } + } + /// The content property + public string Content { + get { return BackingStore?.Get("content"); } + set { BackingStore?.Set("content", value); } + } + /// The OdataType property + public string OdataType { + get { return BackingStore?.Get("@odata.type"); } + set { BackingStore?.Set("@odata.type", value); } + } + /// The phishingUrl property + public string PhishingUrl { + get { return BackingStore?.Get("phishingUrl"); } + set { BackingStore?.Set("phishingUrl", value); } + } + /// + /// Instantiates a new payloadDetail and sets the default values. + /// + public PayloadDetail() { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static PayloadDetail CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + var mappingValue = parseNode.GetChildNode("@odata.type")?.GetStringValue(); + return mappingValue switch { + "#microsoft.graph.emailPayloadDetail" => new EmailPayloadDetail(), + _ => new PayloadDetail(), + }; + } + /// + /// The deserialization information for the current model + /// + public IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"coachmarks", n => { Coachmarks = n.GetCollectionOfObjectValues(PayloadCoachmark.CreateFromDiscriminatorValue)?.ToList(); } }, + {"content", n => { Content = n.GetStringValue(); } }, + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, + {"phishingUrl", n => { PhishingUrl = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteCollectionOfObjectValues("coachmarks", Coachmarks); + writer.WriteStringValue("content", Content); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteStringValue("phishingUrl", PhishingUrl); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/PayloadIndustry.cs b/src/Microsoft.Graph/Generated/Models/PayloadIndustry.cs new file mode 100644 index 00000000000..06e09011a45 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/PayloadIndustry.cs @@ -0,0 +1,26 @@ +namespace Microsoft.Graph.Beta.Models { + public enum PayloadIndustry { + Unknown, + Other, + Banking, + BusinessServices, + ConsumerServices, + Education, + Energy, + Construction, + Consulting, + FinancialServices, + Government, + Hospitality, + Insurance, + Legal, + CourierServices, + IT, + Healthcare, + Manufacturing, + Retail, + Telecom, + RealEstate, + UnknownFutureValue, + } +} diff --git a/src/Microsoft.Graph/Generated/Models/PayloadTheme.cs b/src/Microsoft.Graph/Generated/Models/PayloadTheme.cs new file mode 100644 index 00000000000..9011a0ae4e7 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/PayloadTheme.cs @@ -0,0 +1,36 @@ +namespace Microsoft.Graph.Beta.Models { + public enum PayloadTheme { + Unknown, + Other, + AccountActivation, + AccountVerification, + Billing, + CleanUpMail, + Controversial, + DocumentReceived, + Expense, + Fax, + FinanceReport, + IncomingMessages, + Invoice, + ItemReceived, + LoginAlert, + MailReceived, + Password, + Payment, + Payroll, + PersonalizedOffer, + Quarantine, + RemoteWork, + ReviewMessage, + SecurityUpdate, + ServiceSuspended, + SignatureRequired, + UpgradeMailboxStorage, + VerifyMailbox, + Voicemail, + Advertisement, + EmployeeEngagement, + UnknownFutureValue, + } +} diff --git a/src/Microsoft.Graph/Generated/Models/PlannerFieldRules.cs b/src/Microsoft.Graph/Generated/Models/PlannerFieldRules.cs index 8b51f18ab85..d8ac549f4d1 100644 --- a/src/Microsoft.Graph/Generated/Models/PlannerFieldRules.cs +++ b/src/Microsoft.Graph/Generated/Models/PlannerFieldRules.cs @@ -13,7 +13,7 @@ public IDictionary AdditionalData { } /// Stores model information. public IBackingStore BackingStore { get; private set; } - /// The defaultRules property + /// The default rules that apply if no override matches to the current data. public List DefaultRules { get { return BackingStore?.Get>("defaultRules"); } set { BackingStore?.Set("defaultRules", value); } @@ -23,7 +23,7 @@ public string OdataType { get { return BackingStore?.Get("@odata.type"); } set { BackingStore?.Set("@odata.type", value); } } - /// The overrides property + /// Overrides that specify different rules for specific data associated with the field. public List Overrides { get { return BackingStore?.Get>("overrides"); } set { BackingStore?.Set("overrides", value); } diff --git a/src/Microsoft.Graph/Generated/Models/PlannerPlanConfiguration.cs b/src/Microsoft.Graph/Generated/Models/PlannerPlanConfiguration.cs index 99f58dcb8f2..5c2e01176df 100644 --- a/src/Microsoft.Graph/Generated/Models/PlannerPlanConfiguration.cs +++ b/src/Microsoft.Graph/Generated/Models/PlannerPlanConfiguration.cs @@ -5,37 +5,37 @@ using System.Linq; namespace Microsoft.Graph.Beta.Models { public class PlannerPlanConfiguration : Entity, IParsable { - /// The buckets property + /// List the buckets that should be created in the plan. public List Buckets { get { return BackingStore?.Get>("buckets"); } set { BackingStore?.Set("buckets", value); } } - /// The createdBy property + /// The identity of the creator of the plan configuration. public IdentitySet CreatedBy { get { return BackingStore?.Get("createdBy"); } set { BackingStore?.Set("createdBy", value); } } - /// The createdDateTime property + /// The date and time when the plan configuration was created. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. public DateTimeOffset? CreatedDateTime { get { return BackingStore?.Get("createdDateTime"); } set { BackingStore?.Set("createdDateTime", value); } } - /// The defaultLanguage property + /// The language code for the default language to be used for the names of the objects created for the plan. public string DefaultLanguage { get { return BackingStore?.Get("defaultLanguage"); } set { BackingStore?.Set("defaultLanguage", value); } } - /// The lastModifiedBy property + /// The identity of the user who last modified the plan configuration. public IdentitySet LastModifiedBy { get { return BackingStore?.Get("lastModifiedBy"); } set { BackingStore?.Set("lastModifiedBy", value); } } - /// The lastModifiedDateTime property + /// The date and time when the plan configuration was last modified. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. public DateTimeOffset? LastModifiedDateTime { get { return BackingStore?.Get("lastModifiedDateTime"); } set { BackingStore?.Set("lastModifiedDateTime", value); } } - /// The localizations property + /// Localized names for the plan configuration. public List Localizations { get { return BackingStore?.Get>("localizations"); } set { BackingStore?.Set("localizations", value); } diff --git a/src/Microsoft.Graph/Generated/Models/PlannerPlanConfigurationBucketDefinition.cs b/src/Microsoft.Graph/Generated/Models/PlannerPlanConfigurationBucketDefinition.cs index 92e94b0ddaf..6bef2db3306 100644 --- a/src/Microsoft.Graph/Generated/Models/PlannerPlanConfigurationBucketDefinition.cs +++ b/src/Microsoft.Graph/Generated/Models/PlannerPlanConfigurationBucketDefinition.cs @@ -13,7 +13,7 @@ public IDictionary AdditionalData { } /// Stores model information. public IBackingStore BackingStore { get; private set; } - /// The externalBucketId property + /// Application-specified identifier of the bucket. public string ExternalBucketId { get { return BackingStore?.Get("externalBucketId"); } set { BackingStore?.Set("externalBucketId", value); } diff --git a/src/Microsoft.Graph/Generated/Models/PlannerPlanConfigurationBucketLocalization.cs b/src/Microsoft.Graph/Generated/Models/PlannerPlanConfigurationBucketLocalization.cs index f5b08ff1ad1..c20ecde3652 100644 --- a/src/Microsoft.Graph/Generated/Models/PlannerPlanConfigurationBucketLocalization.cs +++ b/src/Microsoft.Graph/Generated/Models/PlannerPlanConfigurationBucketLocalization.cs @@ -13,12 +13,12 @@ public IDictionary AdditionalData { } /// Stores model information. public IBackingStore BackingStore { get; private set; } - /// The externalBucketId property + /// Application-specified identifier of the bucket. public string ExternalBucketId { get { return BackingStore?.Get("externalBucketId"); } set { BackingStore?.Set("externalBucketId", value); } } - /// The name property + /// Name of the bucket. public string Name { get { return BackingStore?.Get("name"); } set { BackingStore?.Set("name", value); } diff --git a/src/Microsoft.Graph/Generated/Models/PlannerPlanConfigurationLocalization.cs b/src/Microsoft.Graph/Generated/Models/PlannerPlanConfigurationLocalization.cs index 3bfddff7324..7436f69a740 100644 --- a/src/Microsoft.Graph/Generated/Models/PlannerPlanConfigurationLocalization.cs +++ b/src/Microsoft.Graph/Generated/Models/PlannerPlanConfigurationLocalization.cs @@ -5,17 +5,17 @@ using System.Linq; namespace Microsoft.Graph.Beta.Models { public class PlannerPlanConfigurationLocalization : Entity, IParsable { - /// The buckets property + /// Localized names for configured buckets in the plan configuration. public List Buckets { get { return BackingStore?.Get>("buckets"); } set { BackingStore?.Set("buckets", value); } } - /// The languageTag property + /// The language code associated with the localized names in this object. public string LanguageTag { get { return BackingStore?.Get("languageTag"); } set { BackingStore?.Set("languageTag", value); } } - /// The planTitle property + /// Localized title of the plan. public string PlanTitle { get { return BackingStore?.Get("planTitle"); } set { BackingStore?.Set("planTitle", value); } diff --git a/src/Microsoft.Graph/Generated/Models/PlannerPropertyRule.cs b/src/Microsoft.Graph/Generated/Models/PlannerPropertyRule.cs index 0c004339cb1..d7a9f904a18 100644 --- a/src/Microsoft.Graph/Generated/Models/PlannerPropertyRule.cs +++ b/src/Microsoft.Graph/Generated/Models/PlannerPropertyRule.cs @@ -18,7 +18,7 @@ public string OdataType { get { return BackingStore?.Get("@odata.type"); } set { BackingStore?.Set("@odata.type", value); } } - /// The ruleKind property + /// Identifies which type of property rules is represented by this instance. The possible values are: taskRule, bucketRule, planRule, unknownFutureValue. public PlannerRuleKind? RuleKind { get { return BackingStore?.Get("ruleKind"); } set { BackingStore?.Set("ruleKind", value); } diff --git a/src/Microsoft.Graph/Generated/Models/PlannerRuleOverride.cs b/src/Microsoft.Graph/Generated/Models/PlannerRuleOverride.cs index 399c4fa33b4..d195e63cf24 100644 --- a/src/Microsoft.Graph/Generated/Models/PlannerRuleOverride.cs +++ b/src/Microsoft.Graph/Generated/Models/PlannerRuleOverride.cs @@ -13,7 +13,7 @@ public IDictionary AdditionalData { } /// Stores model information. public IBackingStore BackingStore { get; private set; } - /// The name property + /// Name of the override. Allowed override values will be dependent on the property affected by the rule. public string Name { get { return BackingStore?.Get("name"); } set { BackingStore?.Set("name", value); } @@ -23,7 +23,7 @@ public string OdataType { get { return BackingStore?.Get("@odata.type"); } set { BackingStore?.Set("@odata.type", value); } } - /// The rules property + /// Overridden rules. These are used as rules for the override instead of the default rules. public List Rules { get { return BackingStore?.Get>("rules"); } set { BackingStore?.Set("rules", value); } diff --git a/src/Microsoft.Graph/Generated/Models/PlannerTaskConfiguration.cs b/src/Microsoft.Graph/Generated/Models/PlannerTaskConfiguration.cs index eb67f8af85b..fafa7e3b7fc 100644 --- a/src/Microsoft.Graph/Generated/Models/PlannerTaskConfiguration.cs +++ b/src/Microsoft.Graph/Generated/Models/PlannerTaskConfiguration.cs @@ -5,7 +5,7 @@ using System.Linq; namespace Microsoft.Graph.Beta.Models { public class PlannerTaskConfiguration : Entity, IParsable { - /// The editPolicy property + /// Policy configuration for tasks created for the businessScenario when they are being changed outside of the scenario. public PlannerTaskPolicy EditPolicy { get { return BackingStore?.Get("editPolicy"); } set { BackingStore?.Set("editPolicy", value); } diff --git a/src/Microsoft.Graph/Generated/Models/PlannerTaskPolicy.cs b/src/Microsoft.Graph/Generated/Models/PlannerTaskPolicy.cs index a7f95956f90..80764f6afd9 100644 --- a/src/Microsoft.Graph/Generated/Models/PlannerTaskPolicy.cs +++ b/src/Microsoft.Graph/Generated/Models/PlannerTaskPolicy.cs @@ -18,7 +18,7 @@ public string OdataType { get { return BackingStore?.Get("@odata.type"); } set { BackingStore?.Set("@odata.type", value); } } - /// The rules property + /// The rules that should be enforced on the tasks when they are being changed outside of the scenario, based on the role of the caller. public List Rules { get { return BackingStore?.Get>("rules"); } set { BackingStore?.Set("rules", value); } diff --git a/src/Microsoft.Graph/Generated/Models/PlannerTaskPropertyRule.cs b/src/Microsoft.Graph/Generated/Models/PlannerTaskPropertyRule.cs index a52b2ac55db..71c32584370 100644 --- a/src/Microsoft.Graph/Generated/Models/PlannerTaskPropertyRule.cs +++ b/src/Microsoft.Graph/Generated/Models/PlannerTaskPropertyRule.cs @@ -5,72 +5,72 @@ using System.Linq; namespace Microsoft.Graph.Beta.Models { public class PlannerTaskPropertyRule : PlannerPropertyRule, IParsable { - /// The appliedCategories property + /// Rules and restrictions for applied categories. This value does not currently support overrides. Accepted values for the default rule and individual overrides are allow, block. public PlannerFieldRules AppliedCategories { get { return BackingStore?.Get("appliedCategories"); } set { BackingStore?.Set("appliedCategories", value); } } - /// The assignments property + /// Rules and restrictions for assignments. Allowed overrides are userCreated and applicationCreated. Accepted values for the default rule and individual overrides are allow, add, addSelf, addOther, remove, removeSelf, removeOther, block. public PlannerFieldRules Assignments { get { return BackingStore?.Get("assignments"); } set { BackingStore?.Set("assignments", value); } } - /// The checkLists property + /// Rules and restrictions for checklist. Allowed overrides are userCreated and applicationCreated. Accepted values for the default rule and individual overrides are allow, add, remove, update, check, reorder, block. public PlannerFieldRules CheckLists { get { return BackingStore?.Get("checkLists"); } set { BackingStore?.Set("checkLists", value); } } - /// The delete property + /// Rules and restrictions for deleting the task. Accepted values are allow and block. public List Delete { get { return BackingStore?.Get>("delete"); } set { BackingStore?.Set("delete", value); } } - /// The dueDate property + /// Rules and restrictions for changing the due date of the task. Accepted values are allow and block. public List DueDate { get { return BackingStore?.Get>("dueDate"); } set { BackingStore?.Set("dueDate", value); } } - /// The move property + /// Rules and restrictions for moving the task between buckets or plans. Accepted values are allow, moveBetweenPlans, moveBetweenBuckets, and block. public List Move { get { return BackingStore?.Get>("move"); } set { BackingStore?.Set("move", value); } } - /// The notes property + /// Rules and restrictions for changing the notes of the task. Accepted values are allow and block. public List Notes { get { return BackingStore?.Get>("notes"); } set { BackingStore?.Set("notes", value); } } - /// The order property + /// Rules and restrictions for changing the order of the task. Accepted values are allow and block. public List Order { get { return BackingStore?.Get>("order"); } set { BackingStore?.Set("order", value); } } - /// The percentComplete property + /// Rules and restrictions for changing the completion percentage of the task. Accepted values are allow, setToComplete, setToNotStarted, setToInProgress, and block. public List PercentComplete { get { return BackingStore?.Get>("percentComplete"); } set { BackingStore?.Set("percentComplete", value); } } - /// The previewType property + /// Rules and restrictions for changing the preview type of the task. Accepted values are allow and block. public List PreviewType { get { return BackingStore?.Get>("previewType"); } set { BackingStore?.Set("previewType", value); } } - /// The priority property + /// Rules and restrictions for changing the priority of the task. Accepted values are allow and block. public List Priority { get { return BackingStore?.Get>("priority"); } set { BackingStore?.Set("priority", value); } } - /// The references property + /// Rules and restrictions for references. Allowed overrides are userCreated and applicationCreated. Accepted values for the default rule and individual overrides are allow, add, remove, block. public PlannerFieldRules References { get { return BackingStore?.Get("references"); } set { BackingStore?.Set("references", value); } } - /// The startDate property + /// Rules and restrictions for changing the start date of the task. Accepted values are allow and block. public List StartDate { get { return BackingStore?.Get>("startDate"); } set { BackingStore?.Set("startDate", value); } } - /// The title property + /// Rules and restrictions for changing the title of the task. Accepted values are allow and block. public List Title { get { return BackingStore?.Get>("title"); } set { BackingStore?.Set("title", value); } diff --git a/src/Microsoft.Graph/Generated/Models/PlannerTaskRoleBasedRule.cs b/src/Microsoft.Graph/Generated/Models/PlannerTaskRoleBasedRule.cs index d27ad784b20..2cffb5af9d3 100644 --- a/src/Microsoft.Graph/Generated/Models/PlannerTaskRoleBasedRule.cs +++ b/src/Microsoft.Graph/Generated/Models/PlannerTaskRoleBasedRule.cs @@ -13,7 +13,7 @@ public IDictionary AdditionalData { } /// Stores model information. public IBackingStore BackingStore { get; private set; } - /// The defaultRule property + /// Default rule that applies when a property or action-specific rule is not provided. Possible values are: Allow, Block public string DefaultRule { get { return BackingStore?.Get("defaultRule"); } set { BackingStore?.Set("defaultRule", value); } @@ -23,12 +23,12 @@ public string OdataType { get { return BackingStore?.Get("@odata.type"); } set { BackingStore?.Set("@odata.type", value); } } - /// The propertyRule property + /// Rules for specific properties and actions. public PlannerTaskPropertyRule PropertyRule { get { return BackingStore?.Get("propertyRule"); } set { BackingStore?.Set("propertyRule", value); } } - /// The role property + /// The role these rules apply to. public PlannerTaskConfigurationRoleBase Role { get { return BackingStore?.Get("role"); } set { BackingStore?.Set("role", value); } diff --git a/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroup.cs b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroup.cs new file mode 100644 index 00000000000..e49e0ff5678 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroup.cs @@ -0,0 +1,74 @@ +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +namespace Microsoft.Graph.Beta.Models { + public class PrivilegedAccessGroup : Entity, IParsable { + /// The assignmentScheduleInstances property + public List AssignmentScheduleInstances { + get { return BackingStore?.Get>("assignmentScheduleInstances"); } + set { BackingStore?.Set("assignmentScheduleInstances", value); } + } + /// The assignmentScheduleRequests property + public List AssignmentScheduleRequests { + get { return BackingStore?.Get>("assignmentScheduleRequests"); } + set { BackingStore?.Set("assignmentScheduleRequests", value); } + } + /// The assignmentSchedules property + public List AssignmentSchedules { + get { return BackingStore?.Get>("assignmentSchedules"); } + set { BackingStore?.Set("assignmentSchedules", value); } + } + /// The eligibilityScheduleInstances property + public List EligibilityScheduleInstances { + get { return BackingStore?.Get>("eligibilityScheduleInstances"); } + set { BackingStore?.Set("eligibilityScheduleInstances", value); } + } + /// The eligibilityScheduleRequests property + public List EligibilityScheduleRequests { + get { return BackingStore?.Get>("eligibilityScheduleRequests"); } + set { BackingStore?.Set("eligibilityScheduleRequests", value); } + } + /// The eligibilitySchedules property + public List EligibilitySchedules { + get { return BackingStore?.Get>("eligibilitySchedules"); } + set { BackingStore?.Set("eligibilitySchedules", value); } + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new PrivilegedAccessGroup CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new PrivilegedAccessGroup(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"assignmentScheduleInstances", n => { AssignmentScheduleInstances = n.GetCollectionOfObjectValues(PrivilegedAccessGroupAssignmentScheduleInstance.CreateFromDiscriminatorValue)?.ToList(); } }, + {"assignmentScheduleRequests", n => { AssignmentScheduleRequests = n.GetCollectionOfObjectValues(PrivilegedAccessGroupAssignmentScheduleRequest.CreateFromDiscriminatorValue)?.ToList(); } }, + {"assignmentSchedules", n => { AssignmentSchedules = n.GetCollectionOfObjectValues(PrivilegedAccessGroupAssignmentSchedule.CreateFromDiscriminatorValue)?.ToList(); } }, + {"eligibilityScheduleInstances", n => { EligibilityScheduleInstances = n.GetCollectionOfObjectValues(PrivilegedAccessGroupEligibilityScheduleInstance.CreateFromDiscriminatorValue)?.ToList(); } }, + {"eligibilityScheduleRequests", n => { EligibilityScheduleRequests = n.GetCollectionOfObjectValues(PrivilegedAccessGroupEligibilityScheduleRequest.CreateFromDiscriminatorValue)?.ToList(); } }, + {"eligibilitySchedules", n => { EligibilitySchedules = n.GetCollectionOfObjectValues(PrivilegedAccessGroupEligibilitySchedule.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("assignmentScheduleInstances", AssignmentScheduleInstances); + writer.WriteCollectionOfObjectValues("assignmentScheduleRequests", AssignmentScheduleRequests); + writer.WriteCollectionOfObjectValues("assignmentSchedules", AssignmentSchedules); + writer.WriteCollectionOfObjectValues("eligibilityScheduleInstances", EligibilityScheduleInstances); + writer.WriteCollectionOfObjectValues("eligibilityScheduleRequests", EligibilityScheduleRequests); + writer.WriteCollectionOfObjectValues("eligibilitySchedules", EligibilitySchedules); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupAssignmentSchedule.cs b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupAssignmentSchedule.cs new file mode 100644 index 00000000000..bd38619e62c --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupAssignmentSchedule.cs @@ -0,0 +1,94 @@ +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +namespace Microsoft.Graph.Beta.Models { + public class PrivilegedAccessGroupAssignmentSchedule : PrivilegedAccessSchedule, IParsable { + /// The accessId property + public PrivilegedAccessGroupRelationships? AccessId { + get { return BackingStore?.Get("accessId"); } + set { BackingStore?.Set("accessId", value); } + } + /// The activatedUsing property + public PrivilegedAccessGroupEligibilitySchedule ActivatedUsing { + get { return BackingStore?.Get("activatedUsing"); } + set { BackingStore?.Set("activatedUsing", value); } + } + /// The assignmentType property + public PrivilegedAccessGroupAssignmentType? AssignmentType { + get { return BackingStore?.Get("assignmentType"); } + set { BackingStore?.Set("assignmentType", value); } + } + /// The group property + public Microsoft.Graph.Beta.Models.Group Group { + get { return BackingStore?.Get("group"); } + set { BackingStore?.Set("group", value); } + } + /// The groupId property + public string GroupId { + get { return BackingStore?.Get("groupId"); } + set { BackingStore?.Set("groupId", value); } + } + /// The memberType property + public PrivilegedAccessGroupMemberType? MemberType { + get { return BackingStore?.Get("memberType"); } + set { BackingStore?.Set("memberType", value); } + } + /// The principal property + public DirectoryObject Principal { + get { return BackingStore?.Get("principal"); } + set { BackingStore?.Set("principal", value); } + } + /// The principalId property + public string PrincipalId { + get { return BackingStore?.Get("principalId"); } + set { BackingStore?.Set("principalId", value); } + } + /// + /// Instantiates a new PrivilegedAccessGroupAssignmentSchedule and sets the default values. + /// + public PrivilegedAccessGroupAssignmentSchedule() : base() { + OdataType = "#microsoft.graph.privilegedAccessGroupAssignmentSchedule"; + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new PrivilegedAccessGroupAssignmentSchedule CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new PrivilegedAccessGroupAssignmentSchedule(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"accessId", n => { AccessId = n.GetEnumValue(); } }, + {"activatedUsing", n => { ActivatedUsing = n.GetObjectValue(PrivilegedAccessGroupEligibilitySchedule.CreateFromDiscriminatorValue); } }, + {"assignmentType", n => { AssignmentType = n.GetEnumValue(); } }, + {"group", n => { Group = n.GetObjectValue(Microsoft.Graph.Beta.Models.Group.CreateFromDiscriminatorValue); } }, + {"groupId", n => { GroupId = n.GetStringValue(); } }, + {"memberType", n => { MemberType = n.GetEnumValue(); } }, + {"principal", n => { Principal = n.GetObjectValue(DirectoryObject.CreateFromDiscriminatorValue); } }, + {"principalId", n => { PrincipalId = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteEnumValue("accessId", AccessId); + writer.WriteObjectValue("activatedUsing", ActivatedUsing); + writer.WriteEnumValue("assignmentType", AssignmentType); + writer.WriteObjectValue("group", Group); + writer.WriteStringValue("groupId", GroupId); + writer.WriteEnumValue("memberType", MemberType); + writer.WriteObjectValue("principal", Principal); + writer.WriteStringValue("principalId", PrincipalId); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupAssignmentScheduleCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupAssignmentScheduleCollectionResponse.cs new file mode 100644 index 00000000000..c126d329afd --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupAssignmentScheduleCollectionResponse.cs @@ -0,0 +1,39 @@ +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +namespace Microsoft.Graph.Beta.Models { + public class PrivilegedAccessGroupAssignmentScheduleCollectionResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new PrivilegedAccessGroupAssignmentScheduleCollectionResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new PrivilegedAccessGroupAssignmentScheduleCollectionResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(PrivilegedAccessGroupAssignmentSchedule.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupAssignmentScheduleInstance.cs b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupAssignmentScheduleInstance.cs new file mode 100644 index 00000000000..edddffd44d9 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupAssignmentScheduleInstance.cs @@ -0,0 +1,101 @@ +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +namespace Microsoft.Graph.Beta.Models { + public class PrivilegedAccessGroupAssignmentScheduleInstance : PrivilegedAccessScheduleInstance, IParsable { + /// The accessId property + public PrivilegedAccessGroupRelationships? AccessId { + get { return BackingStore?.Get("accessId"); } + set { BackingStore?.Set("accessId", value); } + } + /// The activatedUsing property + public PrivilegedAccessGroupEligibilityScheduleInstance ActivatedUsing { + get { return BackingStore?.Get("activatedUsing"); } + set { BackingStore?.Set("activatedUsing", value); } + } + /// The assignmentScheduleId property + public string AssignmentScheduleId { + get { return BackingStore?.Get("assignmentScheduleId"); } + set { BackingStore?.Set("assignmentScheduleId", value); } + } + /// The assignmentType property + public PrivilegedAccessGroupAssignmentType? AssignmentType { + get { return BackingStore?.Get("assignmentType"); } + set { BackingStore?.Set("assignmentType", value); } + } + /// The group property + public Microsoft.Graph.Beta.Models.Group Group { + get { return BackingStore?.Get("group"); } + set { BackingStore?.Set("group", value); } + } + /// The groupId property + public string GroupId { + get { return BackingStore?.Get("groupId"); } + set { BackingStore?.Set("groupId", value); } + } + /// The memberType property + public PrivilegedAccessGroupMemberType? MemberType { + get { return BackingStore?.Get("memberType"); } + set { BackingStore?.Set("memberType", value); } + } + /// The principal property + public DirectoryObject Principal { + get { return BackingStore?.Get("principal"); } + set { BackingStore?.Set("principal", value); } + } + /// The principalId property + public string PrincipalId { + get { return BackingStore?.Get("principalId"); } + set { BackingStore?.Set("principalId", value); } + } + /// + /// Instantiates a new PrivilegedAccessGroupAssignmentScheduleInstance and sets the default values. + /// + public PrivilegedAccessGroupAssignmentScheduleInstance() : base() { + OdataType = "#microsoft.graph.privilegedAccessGroupAssignmentScheduleInstance"; + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new PrivilegedAccessGroupAssignmentScheduleInstance CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new PrivilegedAccessGroupAssignmentScheduleInstance(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"accessId", n => { AccessId = n.GetEnumValue(); } }, + {"activatedUsing", n => { ActivatedUsing = n.GetObjectValue(PrivilegedAccessGroupEligibilityScheduleInstance.CreateFromDiscriminatorValue); } }, + {"assignmentScheduleId", n => { AssignmentScheduleId = n.GetStringValue(); } }, + {"assignmentType", n => { AssignmentType = n.GetEnumValue(); } }, + {"group", n => { Group = n.GetObjectValue(Microsoft.Graph.Beta.Models.Group.CreateFromDiscriminatorValue); } }, + {"groupId", n => { GroupId = n.GetStringValue(); } }, + {"memberType", n => { MemberType = n.GetEnumValue(); } }, + {"principal", n => { Principal = n.GetObjectValue(DirectoryObject.CreateFromDiscriminatorValue); } }, + {"principalId", n => { PrincipalId = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteEnumValue("accessId", AccessId); + writer.WriteObjectValue("activatedUsing", ActivatedUsing); + writer.WriteStringValue("assignmentScheduleId", AssignmentScheduleId); + writer.WriteEnumValue("assignmentType", AssignmentType); + writer.WriteObjectValue("group", Group); + writer.WriteStringValue("groupId", GroupId); + writer.WriteEnumValue("memberType", MemberType); + writer.WriteObjectValue("principal", Principal); + writer.WriteStringValue("principalId", PrincipalId); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupAssignmentScheduleInstanceCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupAssignmentScheduleInstanceCollectionResponse.cs new file mode 100644 index 00000000000..1edb08a9d78 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupAssignmentScheduleInstanceCollectionResponse.cs @@ -0,0 +1,39 @@ +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +namespace Microsoft.Graph.Beta.Models { + public class PrivilegedAccessGroupAssignmentScheduleInstanceCollectionResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new PrivilegedAccessGroupAssignmentScheduleInstanceCollectionResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new PrivilegedAccessGroupAssignmentScheduleInstanceCollectionResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(PrivilegedAccessGroupAssignmentScheduleInstance.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupAssignmentScheduleRequest.cs b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupAssignmentScheduleRequest.cs new file mode 100644 index 00000000000..420c4056618 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupAssignmentScheduleRequest.cs @@ -0,0 +1,94 @@ +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +namespace Microsoft.Graph.Beta.Models { + public class PrivilegedAccessGroupAssignmentScheduleRequest : PrivilegedAccessScheduleRequest, IParsable { + /// The accessId property + public PrivilegedAccessGroupRelationships? AccessId { + get { return BackingStore?.Get("accessId"); } + set { BackingStore?.Set("accessId", value); } + } + /// The activatedUsing property + public PrivilegedAccessGroupEligibilitySchedule ActivatedUsing { + get { return BackingStore?.Get("activatedUsing"); } + set { BackingStore?.Set("activatedUsing", value); } + } + /// The group property + public Microsoft.Graph.Beta.Models.Group Group { + get { return BackingStore?.Get("group"); } + set { BackingStore?.Set("group", value); } + } + /// The groupId property + public string GroupId { + get { return BackingStore?.Get("groupId"); } + set { BackingStore?.Set("groupId", value); } + } + /// The principal property + public DirectoryObject Principal { + get { return BackingStore?.Get("principal"); } + set { BackingStore?.Set("principal", value); } + } + /// The principalId property + public string PrincipalId { + get { return BackingStore?.Get("principalId"); } + set { BackingStore?.Set("principalId", value); } + } + /// The targetSchedule property + public PrivilegedAccessGroupEligibilitySchedule TargetSchedule { + get { return BackingStore?.Get("targetSchedule"); } + set { BackingStore?.Set("targetSchedule", value); } + } + /// The targetScheduleId property + public string TargetScheduleId { + get { return BackingStore?.Get("targetScheduleId"); } + set { BackingStore?.Set("targetScheduleId", value); } + } + /// + /// Instantiates a new PrivilegedAccessGroupAssignmentScheduleRequest and sets the default values. + /// + public PrivilegedAccessGroupAssignmentScheduleRequest() : base() { + OdataType = "#microsoft.graph.privilegedAccessGroupAssignmentScheduleRequest"; + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new PrivilegedAccessGroupAssignmentScheduleRequest CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new PrivilegedAccessGroupAssignmentScheduleRequest(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"accessId", n => { AccessId = n.GetEnumValue(); } }, + {"activatedUsing", n => { ActivatedUsing = n.GetObjectValue(PrivilegedAccessGroupEligibilitySchedule.CreateFromDiscriminatorValue); } }, + {"group", n => { Group = n.GetObjectValue(Microsoft.Graph.Beta.Models.Group.CreateFromDiscriminatorValue); } }, + {"groupId", n => { GroupId = n.GetStringValue(); } }, + {"principal", n => { Principal = n.GetObjectValue(DirectoryObject.CreateFromDiscriminatorValue); } }, + {"principalId", n => { PrincipalId = n.GetStringValue(); } }, + {"targetSchedule", n => { TargetSchedule = n.GetObjectValue(PrivilegedAccessGroupEligibilitySchedule.CreateFromDiscriminatorValue); } }, + {"targetScheduleId", n => { TargetScheduleId = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteEnumValue("accessId", AccessId); + writer.WriteObjectValue("activatedUsing", ActivatedUsing); + writer.WriteObjectValue("group", Group); + writer.WriteStringValue("groupId", GroupId); + writer.WriteObjectValue("principal", Principal); + writer.WriteStringValue("principalId", PrincipalId); + writer.WriteObjectValue("targetSchedule", TargetSchedule); + writer.WriteStringValue("targetScheduleId", TargetScheduleId); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupAssignmentScheduleRequestCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupAssignmentScheduleRequestCollectionResponse.cs new file mode 100644 index 00000000000..3a9b86b6f8a --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupAssignmentScheduleRequestCollectionResponse.cs @@ -0,0 +1,39 @@ +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +namespace Microsoft.Graph.Beta.Models { + public class PrivilegedAccessGroupAssignmentScheduleRequestCollectionResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new PrivilegedAccessGroupAssignmentScheduleRequestCollectionResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new PrivilegedAccessGroupAssignmentScheduleRequestCollectionResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(PrivilegedAccessGroupAssignmentScheduleRequest.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupAssignmentType.cs b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupAssignmentType.cs new file mode 100644 index 00000000000..0c99c0a0b32 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupAssignmentType.cs @@ -0,0 +1,7 @@ +namespace Microsoft.Graph.Beta.Models { + public enum PrivilegedAccessGroupAssignmentType { + Assigned, + Activated, + UnknownFutureValue, + } +} diff --git a/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupEligibilitySchedule.cs b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupEligibilitySchedule.cs new file mode 100644 index 00000000000..9f1f664a6ee --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupEligibilitySchedule.cs @@ -0,0 +1,80 @@ +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +namespace Microsoft.Graph.Beta.Models { + public class PrivilegedAccessGroupEligibilitySchedule : PrivilegedAccessSchedule, IParsable { + /// The accessId property + public PrivilegedAccessGroupRelationships? AccessId { + get { return BackingStore?.Get("accessId"); } + set { BackingStore?.Set("accessId", value); } + } + /// The group property + public Microsoft.Graph.Beta.Models.Group Group { + get { return BackingStore?.Get("group"); } + set { BackingStore?.Set("group", value); } + } + /// The groupId property + public string GroupId { + get { return BackingStore?.Get("groupId"); } + set { BackingStore?.Set("groupId", value); } + } + /// The memberType property + public PrivilegedAccessGroupMemberType? MemberType { + get { return BackingStore?.Get("memberType"); } + set { BackingStore?.Set("memberType", value); } + } + /// The principal property + public DirectoryObject Principal { + get { return BackingStore?.Get("principal"); } + set { BackingStore?.Set("principal", value); } + } + /// The principalId property + public string PrincipalId { + get { return BackingStore?.Get("principalId"); } + set { BackingStore?.Set("principalId", value); } + } + /// + /// Instantiates a new privilegedAccessGroupEligibilitySchedule and sets the default values. + /// + public PrivilegedAccessGroupEligibilitySchedule() : base() { + OdataType = "#microsoft.graph.privilegedAccessGroupEligibilitySchedule"; + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new PrivilegedAccessGroupEligibilitySchedule CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new PrivilegedAccessGroupEligibilitySchedule(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"accessId", n => { AccessId = n.GetEnumValue(); } }, + {"group", n => { Group = n.GetObjectValue(Microsoft.Graph.Beta.Models.Group.CreateFromDiscriminatorValue); } }, + {"groupId", n => { GroupId = n.GetStringValue(); } }, + {"memberType", n => { MemberType = n.GetEnumValue(); } }, + {"principal", n => { Principal = n.GetObjectValue(DirectoryObject.CreateFromDiscriminatorValue); } }, + {"principalId", n => { PrincipalId = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteEnumValue("accessId", AccessId); + writer.WriteObjectValue("group", Group); + writer.WriteStringValue("groupId", GroupId); + writer.WriteEnumValue("memberType", MemberType); + writer.WriteObjectValue("principal", Principal); + writer.WriteStringValue("principalId", PrincipalId); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupEligibilityScheduleCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupEligibilityScheduleCollectionResponse.cs new file mode 100644 index 00000000000..c6b3a75f396 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupEligibilityScheduleCollectionResponse.cs @@ -0,0 +1,39 @@ +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +namespace Microsoft.Graph.Beta.Models { + public class PrivilegedAccessGroupEligibilityScheduleCollectionResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new PrivilegedAccessGroupEligibilityScheduleCollectionResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new PrivilegedAccessGroupEligibilityScheduleCollectionResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(PrivilegedAccessGroupEligibilitySchedule.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupEligibilityScheduleInstance.cs b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupEligibilityScheduleInstance.cs new file mode 100644 index 00000000000..45452a21ae1 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupEligibilityScheduleInstance.cs @@ -0,0 +1,87 @@ +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +namespace Microsoft.Graph.Beta.Models { + public class PrivilegedAccessGroupEligibilityScheduleInstance : PrivilegedAccessScheduleInstance, IParsable { + /// The accessId property + public PrivilegedAccessGroupRelationships? AccessId { + get { return BackingStore?.Get("accessId"); } + set { BackingStore?.Set("accessId", value); } + } + /// The eligibilityScheduleId property + public string EligibilityScheduleId { + get { return BackingStore?.Get("eligibilityScheduleId"); } + set { BackingStore?.Set("eligibilityScheduleId", value); } + } + /// The group property + public Microsoft.Graph.Beta.Models.Group Group { + get { return BackingStore?.Get("group"); } + set { BackingStore?.Set("group", value); } + } + /// The groupId property + public string GroupId { + get { return BackingStore?.Get("groupId"); } + set { BackingStore?.Set("groupId", value); } + } + /// The memberType property + public PrivilegedAccessGroupMemberType? MemberType { + get { return BackingStore?.Get("memberType"); } + set { BackingStore?.Set("memberType", value); } + } + /// The principal property + public DirectoryObject Principal { + get { return BackingStore?.Get("principal"); } + set { BackingStore?.Set("principal", value); } + } + /// The principalId property + public string PrincipalId { + get { return BackingStore?.Get("principalId"); } + set { BackingStore?.Set("principalId", value); } + } + /// + /// Instantiates a new privilegedAccessGroupEligibilityScheduleInstance and sets the default values. + /// + public PrivilegedAccessGroupEligibilityScheduleInstance() : base() { + OdataType = "#microsoft.graph.privilegedAccessGroupEligibilityScheduleInstance"; + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new PrivilegedAccessGroupEligibilityScheduleInstance CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new PrivilegedAccessGroupEligibilityScheduleInstance(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"accessId", n => { AccessId = n.GetEnumValue(); } }, + {"eligibilityScheduleId", n => { EligibilityScheduleId = n.GetStringValue(); } }, + {"group", n => { Group = n.GetObjectValue(Microsoft.Graph.Beta.Models.Group.CreateFromDiscriminatorValue); } }, + {"groupId", n => { GroupId = n.GetStringValue(); } }, + {"memberType", n => { MemberType = n.GetEnumValue(); } }, + {"principal", n => { Principal = n.GetObjectValue(DirectoryObject.CreateFromDiscriminatorValue); } }, + {"principalId", n => { PrincipalId = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteEnumValue("accessId", AccessId); + writer.WriteStringValue("eligibilityScheduleId", EligibilityScheduleId); + writer.WriteObjectValue("group", Group); + writer.WriteStringValue("groupId", GroupId); + writer.WriteEnumValue("memberType", MemberType); + writer.WriteObjectValue("principal", Principal); + writer.WriteStringValue("principalId", PrincipalId); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupEligibilityScheduleInstanceCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupEligibilityScheduleInstanceCollectionResponse.cs new file mode 100644 index 00000000000..f1e25f1e4cd --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupEligibilityScheduleInstanceCollectionResponse.cs @@ -0,0 +1,39 @@ +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +namespace Microsoft.Graph.Beta.Models { + public class PrivilegedAccessGroupEligibilityScheduleInstanceCollectionResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new PrivilegedAccessGroupEligibilityScheduleInstanceCollectionResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new PrivilegedAccessGroupEligibilityScheduleInstanceCollectionResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(PrivilegedAccessGroupEligibilityScheduleInstance.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupEligibilityScheduleRequest.cs b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupEligibilityScheduleRequest.cs new file mode 100644 index 00000000000..a6cd6e2bfa7 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupEligibilityScheduleRequest.cs @@ -0,0 +1,87 @@ +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +namespace Microsoft.Graph.Beta.Models { + public class PrivilegedAccessGroupEligibilityScheduleRequest : PrivilegedAccessScheduleRequest, IParsable { + /// The accessId property + public PrivilegedAccessGroupRelationships? AccessId { + get { return BackingStore?.Get("accessId"); } + set { BackingStore?.Set("accessId", value); } + } + /// The group property + public Microsoft.Graph.Beta.Models.Group Group { + get { return BackingStore?.Get("group"); } + set { BackingStore?.Set("group", value); } + } + /// The groupId property + public string GroupId { + get { return BackingStore?.Get("groupId"); } + set { BackingStore?.Set("groupId", value); } + } + /// The principal property + public DirectoryObject Principal { + get { return BackingStore?.Get("principal"); } + set { BackingStore?.Set("principal", value); } + } + /// The principalId property + public string PrincipalId { + get { return BackingStore?.Get("principalId"); } + set { BackingStore?.Set("principalId", value); } + } + /// The targetSchedule property + public PrivilegedAccessGroupEligibilitySchedule TargetSchedule { + get { return BackingStore?.Get("targetSchedule"); } + set { BackingStore?.Set("targetSchedule", value); } + } + /// The targetScheduleId property + public string TargetScheduleId { + get { return BackingStore?.Get("targetScheduleId"); } + set { BackingStore?.Set("targetScheduleId", value); } + } + /// + /// Instantiates a new PrivilegedAccessGroupEligibilityScheduleRequest and sets the default values. + /// + public PrivilegedAccessGroupEligibilityScheduleRequest() : base() { + OdataType = "#microsoft.graph.privilegedAccessGroupEligibilityScheduleRequest"; + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new PrivilegedAccessGroupEligibilityScheduleRequest CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new PrivilegedAccessGroupEligibilityScheduleRequest(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"accessId", n => { AccessId = n.GetEnumValue(); } }, + {"group", n => { Group = n.GetObjectValue(Microsoft.Graph.Beta.Models.Group.CreateFromDiscriminatorValue); } }, + {"groupId", n => { GroupId = n.GetStringValue(); } }, + {"principal", n => { Principal = n.GetObjectValue(DirectoryObject.CreateFromDiscriminatorValue); } }, + {"principalId", n => { PrincipalId = n.GetStringValue(); } }, + {"targetSchedule", n => { TargetSchedule = n.GetObjectValue(PrivilegedAccessGroupEligibilitySchedule.CreateFromDiscriminatorValue); } }, + {"targetScheduleId", n => { TargetScheduleId = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteEnumValue("accessId", AccessId); + writer.WriteObjectValue("group", Group); + writer.WriteStringValue("groupId", GroupId); + writer.WriteObjectValue("principal", Principal); + writer.WriteStringValue("principalId", PrincipalId); + writer.WriteObjectValue("targetSchedule", TargetSchedule); + writer.WriteStringValue("targetScheduleId", TargetScheduleId); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupEligibilityScheduleRequestCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupEligibilityScheduleRequestCollectionResponse.cs new file mode 100644 index 00000000000..42f2b654a63 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupEligibilityScheduleRequestCollectionResponse.cs @@ -0,0 +1,39 @@ +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +namespace Microsoft.Graph.Beta.Models { + public class PrivilegedAccessGroupEligibilityScheduleRequestCollectionResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new PrivilegedAccessGroupEligibilityScheduleRequestCollectionResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new PrivilegedAccessGroupEligibilityScheduleRequestCollectionResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(PrivilegedAccessGroupEligibilityScheduleRequest.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupMemberType.cs b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupMemberType.cs new file mode 100644 index 00000000000..7bdadf481f6 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupMemberType.cs @@ -0,0 +1,7 @@ +namespace Microsoft.Graph.Beta.Models { + public enum PrivilegedAccessGroupMemberType { + Direct, + Group, + UnknownFutureValue, + } +} diff --git a/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupRelationships.cs b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupRelationships.cs new file mode 100644 index 00000000000..9fa6b7362e3 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupRelationships.cs @@ -0,0 +1,7 @@ +namespace Microsoft.Graph.Beta.Models { + public enum PrivilegedAccessGroupRelationships { + Owner, + Member, + UnknownFutureValue, + } +} diff --git a/src/Microsoft.Graph/Generated/Models/PrivilegedAccessRoot.cs b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessRoot.cs new file mode 100644 index 00000000000..caf78b0f3ea --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessRoot.cs @@ -0,0 +1,39 @@ +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +namespace Microsoft.Graph.Beta.Models { + public class PrivilegedAccessRoot : Entity, IParsable { + /// The group property + public PrivilegedAccessGroup Group { + get { return BackingStore?.Get("group"); } + set { BackingStore?.Set("group", value); } + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new PrivilegedAccessRoot CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new PrivilegedAccessRoot(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"group", n => { Group = n.GetObjectValue(PrivilegedAccessGroup.CreateFromDiscriminatorValue); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteObjectValue("group", Group); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/PrivilegedAccessSchedule.cs b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessSchedule.cs new file mode 100644 index 00000000000..3ef2c00fbb8 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessSchedule.cs @@ -0,0 +1,72 @@ +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +namespace Microsoft.Graph.Beta.Models { + public class PrivilegedAccessSchedule : Entity, IParsable { + /// The createdDateTime property + public DateTimeOffset? CreatedDateTime { + get { return BackingStore?.Get("createdDateTime"); } + set { BackingStore?.Set("createdDateTime", value); } + } + /// The createdUsing property + public string CreatedUsing { + get { return BackingStore?.Get("createdUsing"); } + set { BackingStore?.Set("createdUsing", value); } + } + /// The modifiedDateTime property + public DateTimeOffset? ModifiedDateTime { + get { return BackingStore?.Get("modifiedDateTime"); } + set { BackingStore?.Set("modifiedDateTime", value); } + } + /// The scheduleInfo property + public RequestSchedule ScheduleInfo { + get { return BackingStore?.Get("scheduleInfo"); } + set { BackingStore?.Set("scheduleInfo", value); } + } + /// The status property + public string Status { + get { return BackingStore?.Get("status"); } + set { BackingStore?.Set("status", value); } + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new PrivilegedAccessSchedule CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + var mappingValue = parseNode.GetChildNode("@odata.type")?.GetStringValue(); + return mappingValue switch { + "#microsoft.graph.privilegedAccessGroupAssignmentSchedule" => new PrivilegedAccessGroupAssignmentSchedule(), + "#microsoft.graph.privilegedAccessGroupEligibilitySchedule" => new PrivilegedAccessGroupEligibilitySchedule(), + _ => new PrivilegedAccessSchedule(), + }; + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, + {"createdUsing", n => { CreatedUsing = n.GetStringValue(); } }, + {"modifiedDateTime", n => { ModifiedDateTime = n.GetDateTimeOffsetValue(); } }, + {"scheduleInfo", n => { ScheduleInfo = n.GetObjectValue(RequestSchedule.CreateFromDiscriminatorValue); } }, + {"status", n => { Status = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteDateTimeOffsetValue("createdDateTime", CreatedDateTime); + writer.WriteStringValue("createdUsing", CreatedUsing); + writer.WriteDateTimeOffsetValue("modifiedDateTime", ModifiedDateTime); + writer.WriteObjectValue("scheduleInfo", ScheduleInfo); + writer.WriteStringValue("status", Status); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/PrivilegedAccessScheduleInstance.cs b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessScheduleInstance.cs new file mode 100644 index 00000000000..d993ff97243 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessScheduleInstance.cs @@ -0,0 +1,51 @@ +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +namespace Microsoft.Graph.Beta.Models { + public class PrivilegedAccessScheduleInstance : Entity, IParsable { + /// The endDateTime property + public DateTimeOffset? EndDateTime { + get { return BackingStore?.Get("endDateTime"); } + set { BackingStore?.Set("endDateTime", value); } + } + /// The startDateTime property + public DateTimeOffset? StartDateTime { + get { return BackingStore?.Get("startDateTime"); } + set { BackingStore?.Set("startDateTime", value); } + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new PrivilegedAccessScheduleInstance CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + var mappingValue = parseNode.GetChildNode("@odata.type")?.GetStringValue(); + return mappingValue switch { + "#microsoft.graph.privilegedAccessGroupAssignmentScheduleInstance" => new PrivilegedAccessGroupAssignmentScheduleInstance(), + "#microsoft.graph.privilegedAccessGroupEligibilityScheduleInstance" => new PrivilegedAccessGroupEligibilityScheduleInstance(), + _ => new PrivilegedAccessScheduleInstance(), + }; + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"endDateTime", n => { EndDateTime = n.GetDateTimeOffsetValue(); } }, + {"startDateTime", n => { StartDateTime = n.GetDateTimeOffsetValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteDateTimeOffsetValue("endDateTime", EndDateTime); + writer.WriteDateTimeOffsetValue("startDateTime", StartDateTime); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/PrivilegedAccessScheduleRequest.cs b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessScheduleRequest.cs new file mode 100644 index 00000000000..45248fd208c --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessScheduleRequest.cs @@ -0,0 +1,78 @@ +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +namespace Microsoft.Graph.Beta.Models { + public class PrivilegedAccessScheduleRequest : Request, IParsable { + /// The action property + public ScheduleRequestActions? Action { + get { return BackingStore?.Get("action"); } + set { BackingStore?.Set("action", value); } + } + /// The isValidationOnly property + public bool? IsValidationOnly { + get { return BackingStore?.Get("isValidationOnly"); } + set { BackingStore?.Set("isValidationOnly", value); } + } + /// The justification property + public string Justification { + get { return BackingStore?.Get("justification"); } + set { BackingStore?.Set("justification", value); } + } + /// The scheduleInfo property + public RequestSchedule ScheduleInfo { + get { return BackingStore?.Get("scheduleInfo"); } + set { BackingStore?.Set("scheduleInfo", value); } + } + /// The ticketInfo property + public Microsoft.Graph.Beta.Models.TicketInfo TicketInfo { + get { return BackingStore?.Get("ticketInfo"); } + set { BackingStore?.Set("ticketInfo", value); } + } + /// + /// Instantiates a new PrivilegedAccessScheduleRequest and sets the default values. + /// + public PrivilegedAccessScheduleRequest() : base() { + OdataType = "#microsoft.graph.privilegedAccessScheduleRequest"; + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new PrivilegedAccessScheduleRequest CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + var mappingValue = parseNode.GetChildNode("@odata.type")?.GetStringValue(); + return mappingValue switch { + "#microsoft.graph.privilegedAccessGroupAssignmentScheduleRequest" => new PrivilegedAccessGroupAssignmentScheduleRequest(), + "#microsoft.graph.privilegedAccessGroupEligibilityScheduleRequest" => new PrivilegedAccessGroupEligibilityScheduleRequest(), + _ => new PrivilegedAccessScheduleRequest(), + }; + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"action", n => { Action = n.GetEnumValue(); } }, + {"isValidationOnly", n => { IsValidationOnly = n.GetBoolValue(); } }, + {"justification", n => { Justification = n.GetStringValue(); } }, + {"scheduleInfo", n => { ScheduleInfo = n.GetObjectValue(RequestSchedule.CreateFromDiscriminatorValue); } }, + {"ticketInfo", n => { TicketInfo = n.GetObjectValue(Microsoft.Graph.Beta.Models.TicketInfo.CreateFromDiscriminatorValue); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteEnumValue("action", Action); + writer.WriteBoolValue("isValidationOnly", IsValidationOnly); + writer.WriteStringValue("justification", Justification); + writer.WriteObjectValue("scheduleInfo", ScheduleInfo); + writer.WriteObjectValue("ticketInfo", TicketInfo); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/RemoteAssistancePartner.cs b/src/Microsoft.Graph/Generated/Models/RemoteAssistancePartner.cs index 0fd467b6db0..d9a410ca8c8 100644 --- a/src/Microsoft.Graph/Generated/Models/RemoteAssistancePartner.cs +++ b/src/Microsoft.Graph/Generated/Models/RemoteAssistancePartner.cs @@ -4,9 +4,6 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Beta.Models { - /// - /// RemoteAssistPartner resources represent the metadata and status of a given Remote Assistance partner service. - /// public class RemoteAssistancePartner : Entity, IParsable { /// Display name of the partner. public string DisplayName { diff --git a/src/Microsoft.Graph/Generated/Models/Request.cs b/src/Microsoft.Graph/Generated/Models/Request.cs index 2e2712d060e..0921bcfddd2 100644 --- a/src/Microsoft.Graph/Generated/Models/Request.cs +++ b/src/Microsoft.Graph/Generated/Models/Request.cs @@ -43,6 +43,9 @@ public string Status { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); var mappingValue = parseNode.GetChildNode("@odata.type")?.GetStringValue(); return mappingValue switch { + "#microsoft.graph.privilegedAccessGroupAssignmentScheduleRequest" => new PrivilegedAccessGroupAssignmentScheduleRequest(), + "#microsoft.graph.privilegedAccessGroupEligibilityScheduleRequest" => new PrivilegedAccessGroupEligibilityScheduleRequest(), + "#microsoft.graph.privilegedAccessScheduleRequest" => new PrivilegedAccessScheduleRequest(), "#microsoft.graph.unifiedRoleAssignmentScheduleRequest" => new UnifiedRoleAssignmentScheduleRequest(), "#microsoft.graph.unifiedRoleEligibilityScheduleRequest" => new UnifiedRoleEligibilityScheduleRequest(), "#microsoft.graph.userConsentRequest" => new UserConsentRequest(), diff --git a/src/Microsoft.Graph/Generated/Models/RestrictedAppsViolation.cs b/src/Microsoft.Graph/Generated/Models/RestrictedAppsViolation.cs index 128af76a251..0d2fea22811 100644 --- a/src/Microsoft.Graph/Generated/Models/RestrictedAppsViolation.cs +++ b/src/Microsoft.Graph/Generated/Models/RestrictedAppsViolation.cs @@ -4,9 +4,6 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Beta.Models { - /// - /// Violation of restricted apps configuration profile per device per user - /// public class RestrictedAppsViolation : Entity, IParsable { /// Device configuration profile unique identifier, must be Guid public string DeviceConfigurationId { diff --git a/src/Microsoft.Graph/Generated/Models/ScheduleRequestActions.cs b/src/Microsoft.Graph/Generated/Models/ScheduleRequestActions.cs new file mode 100644 index 00000000000..2047b88ee32 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/ScheduleRequestActions.cs @@ -0,0 +1,14 @@ +namespace Microsoft.Graph.Beta.Models { + public enum ScheduleRequestActions { + AdminAssign, + AdminUpdate, + AdminRemove, + SelfActivate, + SelfDeactivate, + AdminExtend, + AdminRenew, + SelfExtend, + SelfRenew, + UnknownFutureValue, + } +} diff --git a/src/Microsoft.Graph/Generated/Models/SearchHit.cs b/src/Microsoft.Graph/Generated/Models/SearchHit.cs index 88b1381239d..e9d84629672 100644 --- a/src/Microsoft.Graph/Generated/Models/SearchHit.cs +++ b/src/Microsoft.Graph/Generated/Models/SearchHit.cs @@ -43,6 +43,11 @@ public string HitId { get { return BackingStore?.Get("hitId"); } set { BackingStore?.Set("hitId", value); } } + /// The isCollapsed property + public bool? IsCollapsed { + get { return BackingStore?.Get("isCollapsed"); } + set { BackingStore?.Set("isCollapsed", value); } + } /// The OdataType property public string OdataType { get { return BackingStore?.Get("@odata.type"); } @@ -94,6 +99,7 @@ public IDictionary> GetFieldDeserializers() { {"_summary", n => { _summary = n.GetStringValue(); } }, {"contentSource", n => { ContentSource = n.GetStringValue(); } }, {"hitId", n => { HitId = n.GetStringValue(); } }, + {"isCollapsed", n => { IsCollapsed = n.GetBoolValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"rank", n => { Rank = n.GetIntValue(); } }, {"resource", n => { Resource = n.GetObjectValue(Entity.CreateFromDiscriminatorValue); } }, @@ -113,6 +119,7 @@ public void Serialize(ISerializationWriter writer) { writer.WriteStringValue("_summary", _summary); writer.WriteStringValue("contentSource", ContentSource); writer.WriteStringValue("hitId", HitId); + writer.WriteBoolValue("isCollapsed", IsCollapsed); writer.WriteStringValue("@odata.type", OdataType); writer.WriteIntValue("rank", Rank); writer.WriteObjectValue("resource", Resource); diff --git a/src/Microsoft.Graph/Generated/Models/Security/EdiscoveryNoncustodialDataSource.cs b/src/Microsoft.Graph/Generated/Models/Security/EdiscoveryNoncustodialDataSource.cs index 306bd1dad47..0a23e269e0c 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/EdiscoveryNoncustodialDataSource.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/EdiscoveryNoncustodialDataSource.cs @@ -16,7 +16,7 @@ public EdiscoveryIndexOperation LastIndexOperation { set { BackingStore?.Set("lastIndexOperation", value); } } /// - /// Instantiates a new ediscoveryNoncustodialDataSource and sets the default values. + /// Instantiates a new EdiscoveryNoncustodialDataSource and sets the default values. /// public EdiscoveryNoncustodialDataSource() : base() { OdataType = "#microsoft.graph.security.ediscoveryNoncustodialDataSource"; diff --git a/src/Microsoft.Graph/Generated/Models/SecurityConfigurationTask.cs b/src/Microsoft.Graph/Generated/Models/SecurityConfigurationTask.cs index ebb7ca8e3bd..1f456edf7cb 100644 --- a/src/Microsoft.Graph/Generated/Models/SecurityConfigurationTask.cs +++ b/src/Microsoft.Graph/Generated/Models/SecurityConfigurationTask.cs @@ -30,7 +30,7 @@ public List IntendedSettings { get { return BackingStore?.Get>("intendedSettings"); } set { BackingStore?.Set("intendedSettings", value); } } - /// The number of vulnerable devices. + /// The number of vulnerable devices. Valid values 0 to 65536 public int? ManagedDeviceCount { get { return BackingStore?.Get("managedDeviceCount"); } set { BackingStore?.Set("managedDeviceCount", value); } diff --git a/src/Microsoft.Graph/Generated/Models/ServicePrincipal.cs b/src/Microsoft.Graph/Generated/Models/ServicePrincipal.cs index 4340515dba5..299928c36c4 100644 --- a/src/Microsoft.Graph/Generated/Models/ServicePrincipal.cs +++ b/src/Microsoft.Graph/Generated/Models/ServicePrincipal.cs @@ -286,7 +286,7 @@ public Microsoft.Graph.Beta.Models.VerifiedPublisher VerifiedPublisher { set { BackingStore?.Set("verifiedPublisher", value); } } /// - /// Instantiates a new servicePrincipal and sets the default values. + /// Instantiates a new ServicePrincipal and sets the default values. /// public ServicePrincipal() : base() { OdataType = "#microsoft.graph.servicePrincipal"; diff --git a/src/Microsoft.Graph/Generated/Models/SideLoadingKey.cs b/src/Microsoft.Graph/Generated/Models/SideLoadingKey.cs deleted file mode 100644 index eac0b7de680..00000000000 --- a/src/Microsoft.Graph/Generated/Models/SideLoadingKey.cs +++ /dev/null @@ -1,70 +0,0 @@ -using Microsoft.Kiota.Abstractions.Serialization; -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -namespace Microsoft.Graph.Beta.Models { - /// - /// SideLoadingKey entity is required for Windows 8 and 8.1 devices to intall Line Of Business Apps for a tenant. - /// - public class SideLoadingKey : Entity, IParsable { - /// Side Loading Key description displayed to the ITPro Admins.. - public string Description { - get { return BackingStore?.Get("description"); } - set { BackingStore?.Set("description", value); } - } - /// Side Loading Key Name displayed to the ITPro Admins. - public string DisplayName { - get { return BackingStore?.Get("displayName"); } - set { BackingStore?.Set("displayName", value); } - } - /// Side Loading Key Last Updated Date displayed to the ITPro Admins. - public string LastUpdatedDateTime { - get { return BackingStore?.Get("lastUpdatedDateTime"); } - set { BackingStore?.Set("lastUpdatedDateTime", value); } - } - /// Side Loading Key Total Activation displayed to the ITPro Admins. - public int? TotalActivation { - get { return BackingStore?.Get("totalActivation"); } - set { BackingStore?.Set("totalActivation", value); } - } - /// Side Loading Key Value, it is 5x5 value, seperated by hiphens. - public string Value { - get { return BackingStore?.Get("value"); } - set { BackingStore?.Set("value", value); } - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// The parse node to use to read the discriminator value and create the object - public static new SideLoadingKey CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SideLoadingKey(); - } - /// - /// The deserialization information for the current model - /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { - {"description", n => { Description = n.GetStringValue(); } }, - {"displayName", n => { DisplayName = n.GetStringValue(); } }, - {"lastUpdatedDateTime", n => { LastUpdatedDateTime = n.GetStringValue(); } }, - {"totalActivation", n => { TotalActivation = n.GetIntValue(); } }, - {"value", n => { Value = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteStringValue("description", Description); - writer.WriteStringValue("displayName", DisplayName); - writer.WriteStringValue("lastUpdatedDateTime", LastUpdatedDateTime); - writer.WriteIntValue("totalActivation", TotalActivation); - writer.WriteStringValue("value", Value); - } - } -} diff --git a/src/Microsoft.Graph/Generated/Models/Simulation.cs b/src/Microsoft.Graph/Generated/Models/Simulation.cs index dfc5b31439b..4b4f2380faa 100644 --- a/src/Microsoft.Graph/Generated/Models/Simulation.cs +++ b/src/Microsoft.Graph/Generated/Models/Simulation.cs @@ -45,6 +45,21 @@ public string DisplayName { get { return BackingStore?.Get("displayName"); } set { BackingStore?.Set("displayName", value); } } + /// The durationInDays property + public int? DurationInDays { + get { return BackingStore?.Get("durationInDays"); } + set { BackingStore?.Set("durationInDays", value); } + } + /// The excludedAccountTarget property + public AccountTargetContent ExcludedAccountTarget { + get { return BackingStore?.Get("excludedAccountTarget"); } + set { BackingStore?.Set("excludedAccountTarget", value); } + } + /// The includedAccountTarget property + public AccountTargetContent IncludedAccountTarget { + get { return BackingStore?.Get("includedAccountTarget"); } + set { BackingStore?.Set("includedAccountTarget", value); } + } /// Flag that represents if the attack simulation and training campaign was created from a simulation automation flow. Supports $filter and $orderby. public bool? IsAutomated { get { return BackingStore?.Get("isAutomated"); } @@ -65,6 +80,11 @@ public DateTimeOffset? LaunchDateTime { get { return BackingStore?.Get("launchDateTime"); } set { BackingStore?.Set("launchDateTime", value); } } + /// The payload property + public Microsoft.Graph.Beta.Models.Payload Payload { + get { return BackingStore?.Get("payload"); } + set { BackingStore?.Set("payload", value); } + } /// Method of delivery of the phishing payload used in the attack simulation and training campaign. Possible values are: unknown, sms, email, teams, unknownFutureValue. public Microsoft.Graph.Beta.Models.PayloadDeliveryPlatform? PayloadDeliveryPlatform { get { return BackingStore?.Get("payloadDeliveryPlatform"); } @@ -101,10 +121,14 @@ public SimulationStatus? Status { {"createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, {"description", n => { Description = n.GetStringValue(); } }, {"displayName", n => { DisplayName = n.GetStringValue(); } }, + {"durationInDays", n => { DurationInDays = n.GetIntValue(); } }, + {"excludedAccountTarget", n => { ExcludedAccountTarget = n.GetObjectValue(AccountTargetContent.CreateFromDiscriminatorValue); } }, + {"includedAccountTarget", n => { IncludedAccountTarget = n.GetObjectValue(AccountTargetContent.CreateFromDiscriminatorValue); } }, {"isAutomated", n => { IsAutomated = n.GetBoolValue(); } }, {"lastModifiedBy", n => { LastModifiedBy = n.GetObjectValue(EmailIdentity.CreateFromDiscriminatorValue); } }, {"lastModifiedDateTime", n => { LastModifiedDateTime = n.GetDateTimeOffsetValue(); } }, {"launchDateTime", n => { LaunchDateTime = n.GetDateTimeOffsetValue(); } }, + {"payload", n => { Payload = n.GetObjectValue(Microsoft.Graph.Beta.Models.Payload.CreateFromDiscriminatorValue); } }, {"payloadDeliveryPlatform", n => { PayloadDeliveryPlatform = n.GetEnumValue(); } }, {"report", n => { Report = n.GetObjectValue(SimulationReport.CreateFromDiscriminatorValue); } }, {"status", n => { Status = n.GetEnumValue(); } }, @@ -125,10 +149,14 @@ public SimulationStatus? Status { writer.WriteDateTimeOffsetValue("createdDateTime", CreatedDateTime); writer.WriteStringValue("description", Description); writer.WriteStringValue("displayName", DisplayName); + writer.WriteIntValue("durationInDays", DurationInDays); + writer.WriteObjectValue("excludedAccountTarget", ExcludedAccountTarget); + writer.WriteObjectValue("includedAccountTarget", IncludedAccountTarget); writer.WriteBoolValue("isAutomated", IsAutomated); writer.WriteObjectValue("lastModifiedBy", LastModifiedBy); writer.WriteDateTimeOffsetValue("lastModifiedDateTime", LastModifiedDateTime); writer.WriteDateTimeOffsetValue("launchDateTime", LaunchDateTime); + writer.WriteObjectValue("payload", Payload); writer.WriteEnumValue("payloadDeliveryPlatform", PayloadDeliveryPlatform); writer.WriteObjectValue("report", Report); writer.WriteEnumValue("status", Status); diff --git a/src/Microsoft.Graph/Generated/Models/SimulationContentSource.cs b/src/Microsoft.Graph/Generated/Models/SimulationContentSource.cs new file mode 100644 index 00000000000..7e271a738e7 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/SimulationContentSource.cs @@ -0,0 +1,8 @@ +namespace Microsoft.Graph.Beta.Models { + public enum SimulationContentSource { + Unknown, + Global, + Tenant, + UnknownFutureValue, + } +} diff --git a/src/Microsoft.Graph/Generated/Models/SimulationContentStatus.cs b/src/Microsoft.Graph/Generated/Models/SimulationContentStatus.cs new file mode 100644 index 00000000000..2e6740683fb --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/SimulationContentStatus.cs @@ -0,0 +1,10 @@ +namespace Microsoft.Graph.Beta.Models { + public enum SimulationContentStatus { + Unknown, + Draft, + Ready, + Archive, + Delete, + UnknownFutureValue, + } +} diff --git a/src/Microsoft.Graph/Generated/Models/SingleSignOnMode.cs b/src/Microsoft.Graph/Generated/Models/SingleSignOnMode.cs index 3e584b5b336..ff19a43d40c 100644 --- a/src/Microsoft.Graph/Generated/Models/SingleSignOnMode.cs +++ b/src/Microsoft.Graph/Generated/Models/SingleSignOnMode.cs @@ -5,6 +5,7 @@ public enum SingleSignOnMode { Saml, PingHeaderBased, AadHeaderBased, + OAuthToken, UnknownFutureValue, } } diff --git a/src/Microsoft.Graph/Generated/Models/TelecomExpenseManagementPartner.cs b/src/Microsoft.Graph/Generated/Models/TelecomExpenseManagementPartner.cs index b186ee0194a..1dd8659cadc 100644 --- a/src/Microsoft.Graph/Generated/Models/TelecomExpenseManagementPartner.cs +++ b/src/Microsoft.Graph/Generated/Models/TelecomExpenseManagementPartner.cs @@ -4,9 +4,6 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Beta.Models { - /// - /// telecomExpenseManagementPartner resources represent the metadata and status of a given TEM service. Once your organization has onboarded with a partner, the partner can be enabled or disabled to switch TEM functionality on or off. - /// public class TelecomExpenseManagementPartner : Entity, IParsable { /// Whether the partner's AAD app has been authorized to access Intune. public bool? AppAuthorized { diff --git a/src/Microsoft.Graph/Generated/Models/TenantRelationship.cs b/src/Microsoft.Graph/Generated/Models/TenantRelationship.cs index 63efec13a18..c8c2518f201 100644 --- a/src/Microsoft.Graph/Generated/Models/TenantRelationship.cs +++ b/src/Microsoft.Graph/Generated/Models/TenantRelationship.cs @@ -1,11 +1,19 @@ using Microsoft.Graph.Beta.Models.ManagedTenants; using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Beta.Models { - public class TenantRelationship : Entity, IParsable { + public class TenantRelationship : IAdditionalDataHolder, IBackedModel, IParsable { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { + get { return BackingStore?.Get>("additionalData"); } + set { BackingStore?.Set("additionalData", value); } + } + /// Stores model information. + public IBackingStore BackingStore { get; private set; } /// The customer who has a delegated admin relationship with a Microsoft partner. public List DelegatedAdminCustomers { get { return BackingStore?.Get>("delegatedAdminCustomers"); } @@ -21,34 +29,48 @@ public ManagedTenant ManagedTenants { get { return BackingStore?.Get("managedTenants"); } set { BackingStore?.Set("managedTenants", value); } } + /// The OdataType property + public string OdataType { + get { return BackingStore?.Get("@odata.type"); } + set { BackingStore?.Set("@odata.type", value); } + } + /// + /// Instantiates a new TenantRelationship and sets the default values. + /// + public TenantRelationship() { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + AdditionalData = new Dictionary(); + } /// /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static new TenantRelationship CreateFromDiscriminatorValue(IParseNode parseNode) { + public static TenantRelationship CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new TenantRelationship(); } /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { + public IDictionary> GetFieldDeserializers() { + return new Dictionary> { {"delegatedAdminCustomers", n => { DelegatedAdminCustomers = n.GetCollectionOfObjectValues(DelegatedAdminCustomer.CreateFromDiscriminatorValue)?.ToList(); } }, {"delegatedAdminRelationships", n => { DelegatedAdminRelationships = n.GetCollectionOfObjectValues(DelegatedAdminRelationship.CreateFromDiscriminatorValue)?.ToList(); } }, {"managedTenants", n => { ManagedTenants = n.GetObjectValue(ManagedTenant.CreateFromDiscriminatorValue); } }, + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); writer.WriteCollectionOfObjectValues("delegatedAdminCustomers", DelegatedAdminCustomers); writer.WriteCollectionOfObjectValues("delegatedAdminRelationships", DelegatedAdminRelationships); writer.WriteObjectValue("managedTenants", ManagedTenants); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Models/TermsAndConditions.cs b/src/Microsoft.Graph/Generated/Models/TermsAndConditions.cs index c40f5a38409..afc382a6575 100644 --- a/src/Microsoft.Graph/Generated/Models/TermsAndConditions.cs +++ b/src/Microsoft.Graph/Generated/Models/TermsAndConditions.cs @@ -4,9 +4,6 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Beta.Models { - /// - /// 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. - /// public class TermsAndConditions : Entity, IParsable { /// 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. public string AcceptanceStatement { diff --git a/src/Microsoft.Graph/Generated/Models/User.cs b/src/Microsoft.Graph/Generated/Models/User.cs index 3c83d3bc05f..ba86d319c32 100644 --- a/src/Microsoft.Graph/Generated/Models/User.cs +++ b/src/Microsoft.Graph/Generated/Models/User.cs @@ -526,7 +526,7 @@ public string PasswordPolicies { get { return BackingStore?.Get("passwordPolicies"); } set { BackingStore?.Set("passwordPolicies", value); } } - /// Specifies the password profile for the user. The profile contains the user's password. This property is required when a user is created. The password in the profile must satisfy minimum requirements as specified by the passwordPolicies property. By default, a strong password is required. NOTE: For Azure B2C tenants, the forceChangePasswordNextSignIn property should be set to false and instead use custom policies and user flows to force password reset at first logon. See Force password reset at first logon. Supports $filter (eq, ne, not, in, and eq on null values). + /// Specifies the password profile for the user. The profile contains the user's password. This property is required when a user is created. The password in the profile must satisfy minimum requirements as specified by the passwordPolicies property. By default, a strong password is required. Supports $filter (eq, ne, not, in, and eq on null values). public Microsoft.Graph.Beta.Models.PasswordProfile PasswordProfile { get { return BackingStore?.Get("passwordProfile"); } set { BackingStore?.Set("passwordProfile", value); } diff --git a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsAnomalySeverityOverview.cs b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsAnomalySeverityOverview.cs index ee7609c1582..cb1d642c97a 100644 --- a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsAnomalySeverityOverview.cs +++ b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsAnomalySeverityOverview.cs @@ -16,22 +16,22 @@ public IDictionary AdditionalData { } /// Stores model information. public IBackingStore BackingStore { get; private set; } - /// The number of high severity anomalies which have been detected. Valid values -2147483648 to 2147483647 + /// Indicates count of high severity anomalies which have been detected. Valid values -2147483648 to 2147483647 public int? HighSeverityAnomalyCount { get { return BackingStore?.Get("highSeverityAnomalyCount"); } set { BackingStore?.Set("highSeverityAnomalyCount", value); } } - /// The number of informational severity anomalies which have been detected. Valid values -2147483648 to 2147483647 + /// Indicates count of informational severity anomalies which have been detected. Valid values -2147483648 to 2147483647 public int? InformationalSeverityAnomalyCount { get { return BackingStore?.Get("informationalSeverityAnomalyCount"); } set { BackingStore?.Set("informationalSeverityAnomalyCount", value); } } - /// The number of low severity anomalies which have been detected. Valid values -2147483648 to 2147483647 + /// Indicates count of low severity anomalies which have been detected. Valid values -2147483648 to 2147483647 public int? LowSeverityAnomalyCount { get { return BackingStore?.Get("lowSeverityAnomalyCount"); } set { BackingStore?.Set("lowSeverityAnomalyCount", value); } } - /// The number of medium severity anomalies which have been detected. Valid values -2147483648 to 2147483647 + /// Indicates count of medium severity anomalies which have been detected. Valid values -2147483648 to 2147483647 public int? MediumSeverityAnomalyCount { get { return BackingStore?.Get("mediumSeverityAnomalyCount"); } set { BackingStore?.Set("mediumSeverityAnomalyCount", value); } diff --git a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsDeviceScores.cs b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsDeviceScores.cs index 3cfffe8c143..7f6a1211e86 100644 --- a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsDeviceScores.cs +++ b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsDeviceScores.cs @@ -4,9 +4,6 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Beta.Models { - /// - /// The user experience analytics device scores entity consolidates the various endpoint analytics scores. - /// public class UserExperienceAnalyticsDeviceScores : Entity, IParsable { /// The user experience analytics device app reliability score. Valid values -1.79769313486232E+308 to 1.79769313486232E+308 public double? AppReliabilityScore { diff --git a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsDeviceStartupHistory.cs b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsDeviceStartupHistory.cs index 3e7a02ff96c..60ec01617e2 100644 --- a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsDeviceStartupHistory.cs +++ b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsDeviceStartupHistory.cs @@ -4,9 +4,6 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Beta.Models { - /// - /// The user experience analytics device startup history entity contains device boot performance history details. - /// public class UserExperienceAnalyticsDeviceStartupHistory : Entity, IParsable { /// The user experience analytics device core boot time in milliseconds. public int? CoreBootTimeInMs { diff --git a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsDeviceStartupProcess.cs b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsDeviceStartupProcess.cs index 1c6dd958ee2..521559c752d 100644 --- a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsDeviceStartupProcess.cs +++ b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsDeviceStartupProcess.cs @@ -4,9 +4,6 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Beta.Models { - /// - /// The user experience analytics device startup process details. - /// public class UserExperienceAnalyticsDeviceStartupProcess : Entity, IParsable { /// The user experience analytics device id. public string ManagedDeviceId { diff --git a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsDeviceStartupProcessPerformance.cs b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsDeviceStartupProcessPerformance.cs index d920d54bb39..d19477f40fe 100644 --- a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsDeviceStartupProcessPerformance.cs +++ b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsDeviceStartupProcessPerformance.cs @@ -4,9 +4,6 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Beta.Models { - /// - /// The user experience analytics device startup process performance. - /// public class UserExperienceAnalyticsDeviceStartupProcessPerformance : Entity, IParsable { /// User experience analytics device startup process summarized count. public long? DeviceCount { diff --git a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsDeviceTimelineEvents.cs b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsDeviceTimelineEvents.cs new file mode 100644 index 00000000000..e2cabcc2e9b --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsDeviceTimelineEvents.cs @@ -0,0 +1,81 @@ +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +namespace Microsoft.Graph.Beta.Models { + public class UserExperienceAnalyticsDeviceTimelineEvents : Entity, IParsable { + /// The id of the device where the event occurred. + public string DeviceId { + get { return BackingStore?.Get("deviceId"); } + set { BackingStore?.Set("deviceId", value); } + } + /// Placeholder value for future expansion. + public string EventAdditionalInformation { + get { return BackingStore?.Get("eventAdditionalInformation"); } + set { BackingStore?.Set("eventAdditionalInformation", value); } + } + /// The time the event occured. + public DateTimeOffset? EventDateTime { + get { return BackingStore?.Get("eventDateTime"); } + set { BackingStore?.Set("eventDateTime", value); } + } + /// The details provided by the event, format depends on event type. + public string EventDetails { + get { return BackingStore?.Get("eventDetails"); } + set { BackingStore?.Set("eventDetails", value); } + } + /// Indicates device event level. Possible values are: None, Verbose, Information, Warning, Error, Critical + public DeviceEventLevel? EventLevel { + get { return BackingStore?.Get("eventLevel"); } + set { BackingStore?.Set("eventLevel", value); } + } + /// The name of the event. Examples include: BootEvent, LogonEvent, AppCrashEvent, AppHangEvent. + public string EventName { + get { return BackingStore?.Get("eventName"); } + set { BackingStore?.Set("eventName", value); } + } + /// The source of the event. Examples include: Intune, Sccm. + public string EventSource { + get { return BackingStore?.Get("eventSource"); } + set { BackingStore?.Set("eventSource", value); } + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new UserExperienceAnalyticsDeviceTimelineEvents CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new UserExperienceAnalyticsDeviceTimelineEvents(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"deviceId", n => { DeviceId = n.GetStringValue(); } }, + {"eventAdditionalInformation", n => { EventAdditionalInformation = n.GetStringValue(); } }, + {"eventDateTime", n => { EventDateTime = n.GetDateTimeOffsetValue(); } }, + {"eventDetails", n => { EventDetails = n.GetStringValue(); } }, + {"eventLevel", n => { EventLevel = n.GetEnumValue(); } }, + {"eventName", n => { EventName = n.GetStringValue(); } }, + {"eventSource", n => { EventSource = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteStringValue("deviceId", DeviceId); + writer.WriteStringValue("eventAdditionalInformation", EventAdditionalInformation); + writer.WriteDateTimeOffsetValue("eventDateTime", EventDateTime); + writer.WriteStringValue("eventDetails", EventDetails); + writer.WriteEnumValue("eventLevel", EventLevel); + writer.WriteStringValue("eventName", EventName); + writer.WriteStringValue("eventSource", EventSource); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsDeviceTimelineEventsCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsDeviceTimelineEventsCollectionResponse.cs new file mode 100644 index 00000000000..3aac0317a92 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsDeviceTimelineEventsCollectionResponse.cs @@ -0,0 +1,39 @@ +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +namespace Microsoft.Graph.Beta.Models { + public class UserExperienceAnalyticsDeviceTimelineEventsCollectionResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new UserExperienceAnalyticsDeviceTimelineEventsCollectionResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new UserExperienceAnalyticsDeviceTimelineEventsCollectionResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(UserExperienceAnalyticsDeviceTimelineEvents.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsDeviceWithoutCloudIdentity.cs b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsDeviceWithoutCloudIdentity.cs index b661d233c8c..d67a5f8eec4 100644 --- a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsDeviceWithoutCloudIdentity.cs +++ b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsDeviceWithoutCloudIdentity.cs @@ -4,9 +4,6 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Beta.Models { - /// - /// The user experience analytics Device without Cloud Identity. - /// public class UserExperienceAnalyticsDeviceWithoutCloudIdentity : Entity, IParsable { /// Azure Active Directory Device Id public string AzureAdDeviceId { diff --git a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsImpactingProcess.cs b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsImpactingProcess.cs index 5c0a831c7e9..debdf994f43 100644 --- a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsImpactingProcess.cs +++ b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsImpactingProcess.cs @@ -4,9 +4,6 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Beta.Models { - /// - /// The user experience analytics top impacting process entity. - /// public class UserExperienceAnalyticsImpactingProcess : Entity, IParsable { /// The category of impacting process. public string Category { diff --git a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsModelScores.cs b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsModelScores.cs index 92cd9906849..cb0841b1d34 100644 --- a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsModelScores.cs +++ b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsModelScores.cs @@ -4,9 +4,6 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Beta.Models { - /// - /// The user experience analytics model scores entity consolidates the various endpoint analytics scores. - /// public class UserExperienceAnalyticsModelScores : Entity, IParsable { /// The user experience analytics model app reliability score. Valid values -1.79769313486232E+308 to 1.79769313486232E+308 public double? AppReliabilityScore { diff --git a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsNotAutopilotReadyDevice.cs b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsNotAutopilotReadyDevice.cs index 8ac4ff398f3..a6f56265374 100644 --- a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsNotAutopilotReadyDevice.cs +++ b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsNotAutopilotReadyDevice.cs @@ -4,9 +4,6 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Beta.Models { - /// - /// The user experience analytics Device not windows autopilot ready. - /// public class UserExperienceAnalyticsNotAutopilotReadyDevice : Entity, IParsable { /// The intune device's autopilotProfileAssigned. public bool? AutoPilotProfileAssigned { diff --git a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsRemoteConnection.cs b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsRemoteConnection.cs index e5eb100b4d7..79beea17caa 100644 --- a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsRemoteConnection.cs +++ b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsRemoteConnection.cs @@ -4,9 +4,6 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Beta.Models { - /// - /// The user experience analyte remote connection entity. - /// public class UserExperienceAnalyticsRemoteConnection : Entity, IParsable { /// The sign in failure percentage of Cloud PC Device. Valid values 0 to 100 public double? CloudPcFailurePercentage { diff --git a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsResourcePerformance.cs b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsResourcePerformance.cs index 4e89c3119ac..088675fc1da 100644 --- a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsResourcePerformance.cs +++ b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsResourcePerformance.cs @@ -4,9 +4,6 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Beta.Models { - /// - /// The user experience analytics resource performance entity. - /// public class UserExperienceAnalyticsResourcePerformance : Entity, IParsable { /// AverageSpikeTimeScore of a device or a model type. Valid values 0 to 100 public int? AverageSpikeTimeScore { diff --git a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsScoreHistory.cs b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsScoreHistory.cs index fc06dc9f891..d93ad87db19 100644 --- a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsScoreHistory.cs +++ b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsScoreHistory.cs @@ -4,9 +4,6 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Beta.Models { - /// - /// The user experience analytics device startup score history. - /// public class UserExperienceAnalyticsScoreHistory : Entity, IParsable { /// The user experience analytics device startup date time. public DateTimeOffset? StartupDateTime { diff --git a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsWorkFromAnywhereMetric.cs b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsWorkFromAnywhereMetric.cs index 49382bb5119..da511c73eab 100644 --- a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsWorkFromAnywhereMetric.cs +++ b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsWorkFromAnywhereMetric.cs @@ -4,9 +4,6 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Beta.Models { - /// - /// The user experience analytics metric for work from anywhere report - /// public class UserExperienceAnalyticsWorkFromAnywhereMetric : Entity, IParsable { /// The work from anywhere metric devices. public List MetricDevices { diff --git a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsWorkFromAnywhereModelPerformance.cs b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsWorkFromAnywhereModelPerformance.cs index 51b035daf22..f15c3b49051 100644 --- a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsWorkFromAnywhereModelPerformance.cs +++ b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsWorkFromAnywhereModelPerformance.cs @@ -4,9 +4,6 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Beta.Models { - /// - /// The user experience analytics work from anywhere model performance. - /// public class UserExperienceAnalyticsWorkFromAnywhereModelPerformance : Entity, IParsable { /// The user experience work from anywhere's cloud identity score for the model. Valid values -1.79769313486232E+308 to 1.79769313486232E+308 public double? CloudIdentityScore { diff --git a/src/Microsoft.Graph/Generated/Models/UserPFXCertificate.cs b/src/Microsoft.Graph/Generated/Models/UserPFXCertificate.cs index b9db6fe6ad5..c75510a0059 100644 --- a/src/Microsoft.Graph/Generated/Models/UserPFXCertificate.cs +++ b/src/Microsoft.Graph/Generated/Models/UserPFXCertificate.cs @@ -4,9 +4,6 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Beta.Models { - /// - /// Entity that encapsulates all information required for a user's PFX certificates. - /// public class UserPFXCertificate : Entity, IParsable { /// Date/time when this PFX certificate was imported. public DateTimeOffset? CreatedDateTime { diff --git a/src/Microsoft.Graph/Generated/Models/WatermarkProtectionValues.cs b/src/Microsoft.Graph/Generated/Models/WatermarkProtectionValues.cs new file mode 100644 index 00000000000..215122cd2e0 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/WatermarkProtectionValues.cs @@ -0,0 +1,68 @@ +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +namespace Microsoft.Graph.Beta.Models { + public class WatermarkProtectionValues : IAdditionalDataHolder, IBackedModel, IParsable { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { + get { return BackingStore?.Get>("additionalData"); } + set { BackingStore?.Set("additionalData", value); } + } + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// The isEnabledForContentSharing property + public bool? IsEnabledForContentSharing { + get { return BackingStore?.Get("isEnabledForContentSharing"); } + set { BackingStore?.Set("isEnabledForContentSharing", value); } + } + /// The isEnabledForVideo property + public bool? IsEnabledForVideo { + get { return BackingStore?.Get("isEnabledForVideo"); } + set { BackingStore?.Set("isEnabledForVideo", value); } + } + /// The OdataType property + public string OdataType { + get { return BackingStore?.Get("@odata.type"); } + set { BackingStore?.Set("@odata.type", value); } + } + /// + /// Instantiates a new watermarkProtectionValues and sets the default values. + /// + public WatermarkProtectionValues() { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static WatermarkProtectionValues CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new WatermarkProtectionValues(); + } + /// + /// The deserialization information for the current model + /// + public IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"isEnabledForContentSharing", n => { IsEnabledForContentSharing = n.GetBoolValue(); } }, + {"isEnabledForVideo", n => { IsEnabledForVideo = n.GetBoolValue(); } }, + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteBoolValue("isEnabledForContentSharing", IsEnabledForContentSharing); + writer.WriteBoolValue("isEnabledForVideo", IsEnabledForVideo); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/WindowsDriverUpdateProfile.cs b/src/Microsoft.Graph/Generated/Models/WindowsDriverUpdateProfile.cs index 426b5991f15..16046019334 100644 --- a/src/Microsoft.Graph/Generated/Models/WindowsDriverUpdateProfile.cs +++ b/src/Microsoft.Graph/Generated/Models/WindowsDriverUpdateProfile.cs @@ -4,9 +4,6 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Beta.Models { - /// - /// Windows Driver Update Profile - /// public class WindowsDriverUpdateProfile : Entity, IParsable { /// An enum type to represent approval type of a driver update profile. public DriverUpdateProfileApprovalType? ApprovalType { diff --git a/src/Microsoft.Graph/Generated/Models/WindowsFeatureUpdateProfile.cs b/src/Microsoft.Graph/Generated/Models/WindowsFeatureUpdateProfile.cs index 12ffa147c66..77183eb843a 100644 --- a/src/Microsoft.Graph/Generated/Models/WindowsFeatureUpdateProfile.cs +++ b/src/Microsoft.Graph/Generated/Models/WindowsFeatureUpdateProfile.cs @@ -4,9 +4,6 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Beta.Models { - /// - /// Windows Feature Update Profile - /// public class WindowsFeatureUpdateProfile : Entity, IParsable { /// The list of group assignments of the profile. public List Assignments { diff --git a/src/Microsoft.Graph/Generated/Models/WindowsInformationProtectionAppLearningSummary.cs b/src/Microsoft.Graph/Generated/Models/WindowsInformationProtectionAppLearningSummary.cs index c445036745c..33c303c6509 100644 --- a/src/Microsoft.Graph/Generated/Models/WindowsInformationProtectionAppLearningSummary.cs +++ b/src/Microsoft.Graph/Generated/Models/WindowsInformationProtectionAppLearningSummary.cs @@ -4,9 +4,6 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Beta.Models { - /// - /// Windows Information Protection AppLearning Summary entity. - /// public class WindowsInformationProtectionAppLearningSummary : Entity, IParsable { /// Application Name public string ApplicationName { diff --git a/src/Microsoft.Graph/Generated/Models/WindowsInformationProtectionNetworkLearningSummary.cs b/src/Microsoft.Graph/Generated/Models/WindowsInformationProtectionNetworkLearningSummary.cs index b66f4b30bc1..d144c340f89 100644 --- a/src/Microsoft.Graph/Generated/Models/WindowsInformationProtectionNetworkLearningSummary.cs +++ b/src/Microsoft.Graph/Generated/Models/WindowsInformationProtectionNetworkLearningSummary.cs @@ -4,9 +4,6 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Beta.Models { - /// - /// Windows Information Protection Network learning Summary entity. - /// public class WindowsInformationProtectionNetworkLearningSummary : Entity, IParsable { /// Device Count public int? DeviceCount { diff --git a/src/Microsoft.Graph/Generated/Models/WindowsMalwareInformation.cs b/src/Microsoft.Graph/Generated/Models/WindowsMalwareInformation.cs index 2e8cf197a71..459490bd04d 100644 --- a/src/Microsoft.Graph/Generated/Models/WindowsMalwareInformation.cs +++ b/src/Microsoft.Graph/Generated/Models/WindowsMalwareInformation.cs @@ -4,9 +4,6 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Beta.Models { - /// - /// Malware information entity. - /// public class WindowsMalwareInformation : Entity, IParsable { /// Information URL to learn more about the malware public string AdditionalInformationUrl { diff --git a/src/Microsoft.Graph/Generated/Models/WindowsQualityUpdateProfile.cs b/src/Microsoft.Graph/Generated/Models/WindowsQualityUpdateProfile.cs index d68a9178705..512f88c6d69 100644 --- a/src/Microsoft.Graph/Generated/Models/WindowsQualityUpdateProfile.cs +++ b/src/Microsoft.Graph/Generated/Models/WindowsQualityUpdateProfile.cs @@ -4,9 +4,6 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Beta.Models { - /// - /// Windows Quality Update Profile - /// public class WindowsQualityUpdateProfile : Entity, IParsable { /// The list of group assignments of the profile. public List Assignments { diff --git a/src/Microsoft.Graph/Generated/Models/WindowsUpdateCatalogItem.cs b/src/Microsoft.Graph/Generated/Models/WindowsUpdateCatalogItem.cs index 5bbbde11fb7..c44dc7114e6 100644 --- a/src/Microsoft.Graph/Generated/Models/WindowsUpdateCatalogItem.cs +++ b/src/Microsoft.Graph/Generated/Models/WindowsUpdateCatalogItem.cs @@ -4,9 +4,6 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Beta.Models { - /// - /// Windows update catalog item entity - /// public class WindowsUpdateCatalogItem : Entity, IParsable { /// The display name for the catalog item. public string DisplayName { diff --git a/src/Microsoft.Graph/Generated/Monitoring/AlertRecords/Item/SetPortalNotificationAsSent/SetPortalNotificationAsSentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Monitoring/AlertRecords/Item/SetPortalNotificationAsSent/SetPortalNotificationAsSentRequestBuilder.cs index 50d77c3289d..6bcaeba4a42 100644 --- a/src/Microsoft.Graph/Generated/Monitoring/AlertRecords/Item/SetPortalNotificationAsSent/SetPortalNotificationAsSentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Monitoring/AlertRecords/Item/SetPortalNotificationAsSent/SetPortalNotificationAsSentRequestBuilder.cs @@ -46,7 +46,7 @@ public SetPortalNotificationAsSentRequestBuilder(string rawUrl, IRequestAdapter RequestAdapter = requestAdapter; } /// - /// Set the status of the specified notification on the Microsoft EndPoint Manager admin center as sent, by modifying the **isPortalNotificationSent** property to `true`. + /// Set the status of the notification associated with the specified alertRecord on the Microsoft EndPoint Manager admin center as sent, by setting the **isPortalNotificationSent** property of the portal notification to `true`. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -60,7 +60,7 @@ public async Task PostAsync(Action - /// Set the status of the specified notification on the Microsoft EndPoint Manager admin center as sent, by modifying the **isPortalNotificationSent** property to `true`. + /// Set the status of the notification associated with the specified alertRecord on the Microsoft EndPoint Manager admin center as sent, by setting the **isPortalNotificationSent** property of the portal notification to `true`. /// /// Configuration for the request such as headers, query parameters, and middleware options. public RequestInformation ToPostRequestInformation(Action requestConfiguration = default) { diff --git a/src/Microsoft.Graph/Generated/OnPremisesPublishingProfiles/Item/ConnectorGroups/ConnectorGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/OnPremisesPublishingProfiles/Item/ConnectorGroups/ConnectorGroupsRequestBuilder.cs index 38c2a2b82f9..53704b65b85 100644 --- a/src/Microsoft.Graph/Generated/OnPremisesPublishingProfiles/Item/ConnectorGroups/ConnectorGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/OnPremisesPublishingProfiles/Item/ConnectorGroups/ConnectorGroupsRequestBuilder.cs @@ -73,8 +73,8 @@ public async Task GetAsync(Action(requestInfo, ConnectorGroupCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Create a new connectorGroup. - /// Find more info here + /// Create a connectorGroup object. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new connectorGroup. + /// Create a connectorGroup object. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/RiskDetections/RiskDetectionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/RiskDetections/RiskDetectionsRequestBuilder.cs index 3c71c1f431d..19e1a83c181 100644 --- a/src/Microsoft.Graph/Generated/RiskDetections/RiskDetectionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RiskDetections/RiskDetectionsRequestBuilder.cs @@ -54,8 +54,8 @@ public RiskDetectionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapte RequestAdapter = requestAdapter; } /// - /// Retrieve the properties of a collection of **riskDetection** objects. - /// Find more info here + /// Retrieve the properties of a **riskDetection** object. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -83,7 +83,7 @@ public async Task PostAsync(RiskDetection body, Action(requestInfo, RiskDetection.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Retrieve the properties of a collection of **riskDetection** objects. + /// Retrieve the properties of a **riskDetection** object. /// /// Configuration for the request such as headers, query parameters, and middleware options. public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { @@ -125,7 +125,7 @@ public RequestInformation ToPostRequestInformation(RiskDetection body, Action - /// Retrieve the properties of a collection of **riskDetection** objects. + /// Retrieve the properties of a **riskDetection** object. /// public class RiskDetectionsRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Security/AttackSimulation/AttackSimulationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/AttackSimulation/AttackSimulationRequestBuilder.cs index d5a0c8b1293..2385659dca9 100644 --- a/src/Microsoft.Graph/Generated/Security/AttackSimulation/AttackSimulationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/AttackSimulation/AttackSimulationRequestBuilder.cs @@ -1,5 +1,7 @@ using Microsoft.Graph.Beta.Models; using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Graph.Beta.Security.AttackSimulation.Operations; +using Microsoft.Graph.Beta.Security.AttackSimulation.Payloads; using Microsoft.Graph.Beta.Security.AttackSimulation.SimulationAutomations; using Microsoft.Graph.Beta.Security.AttackSimulation.Simulations; using Microsoft.Kiota.Abstractions; @@ -15,8 +17,16 @@ namespace Microsoft.Graph.Beta.Security.AttackSimulation { /// Provides operations to manage the attackSimulation property of the microsoft.graph.security entity. /// public class AttackSimulationRequestBuilder { + /// Provides operations to manage the operations property of the microsoft.graph.attackSimulationRoot entity. + public OperationsRequestBuilder Operations { get => + new OperationsRequestBuilder(PathParameters, RequestAdapter); + } /// Path parameters for the request private Dictionary PathParameters { get; set; } + /// Provides operations to manage the payloads property of the microsoft.graph.attackSimulationRoot entity. + public PayloadsRequestBuilder Payloads { get => + new PayloadsRequestBuilder(PathParameters, RequestAdapter); + } /// The request adapter to use to execute the requests. private IRequestAdapter RequestAdapter { get; set; } /// Provides operations to manage the simulationAutomations property of the microsoft.graph.attackSimulationRoot entity. diff --git a/src/Microsoft.Graph/Generated/Security/AttackSimulation/Operations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/AttackSimulation/Operations/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..19b665dfbcb --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/AttackSimulation/Operations/Count/CountRequestBuilder.cs @@ -0,0 +1,97 @@ +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +namespace Microsoft.Graph.Beta.Security.AttackSimulation.Operations.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder { + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) { + _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/security/attackSimulation/operations/$count"; + var urlTplParams = new Dictionary(pathParameters); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { + if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/security/attackSimulation/operations/$count"; + var urlTplParams = new Dictionary(); + urlTplParams.Add("request-raw-url", rawUrl); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/AttackSimulation/Operations/Item/AttackSimulationOperationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/AttackSimulation/Operations/Item/AttackSimulationOperationItemRequestBuilder.cs new file mode 100644 index 00000000000..42989c58b0b --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/AttackSimulation/Operations/Item/AttackSimulationOperationItemRequestBuilder.cs @@ -0,0 +1,212 @@ +using Microsoft.Graph.Beta.Models; +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +namespace Microsoft.Graph.Beta.Security.AttackSimulation.Operations.Item { + /// + /// Provides operations to manage the operations property of the microsoft.graph.attackSimulationRoot entity. + /// + public class AttackSimulationOperationItemRequestBuilder { + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// + /// Instantiates a new AttackSimulationOperationItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public AttackSimulationOperationItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) { + _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/security/attackSimulation/operations/{attackSimulationOperation%2Did}{?%24select,%24expand}"; + var urlTplParams = new Dictionary(pathParameters); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Instantiates a new AttackSimulationOperationItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public AttackSimulationOperationItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { + if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/security/attackSimulation/operations/{attackSimulationOperation%2Did}{?%24select,%24expand}"; + var urlTplParams = new Dictionary(); + urlTplParams.Add("request-raw-url", rawUrl); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Delete navigation property operations for security + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken); + } + /// + /// Get operations from security + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, AttackSimulationOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Update the navigation property operations in security + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + public async Task PatchAsync(AttackSimulationOperation body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, AttackSimulationOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Delete navigation property operations for security + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new AttackSimulationOperationItemRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get operations from security + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new AttackSimulationOperationItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update the navigation property operations in security + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. + public RequestInformation ToPatchRequestInformation(AttackSimulationOperation body, Action requestConfiguration = default) { + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new AttackSimulationOperationItemRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class AttackSimulationOperationItemRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new AttackSimulationOperationItemRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public AttackSimulationOperationItemRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Get operations from security + /// + public class AttackSimulationOperationItemRequestBuilderGetQueryParameters { + /// Expand related entities + [QueryParameter("%24expand")] + public string[] Expand { get; set; } + /// Select properties to be returned + [QueryParameter("%24select")] + public string[] Select { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class AttackSimulationOperationItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public AttackSimulationOperationItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new AttackSimulationOperationItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new AttackSimulationOperationItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public AttackSimulationOperationItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class AttackSimulationOperationItemRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new AttackSimulationOperationItemRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public AttackSimulationOperationItemRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/SideLoadingKeys/SideLoadingKeysRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/AttackSimulation/Operations/OperationsRequestBuilder.cs similarity index 67% rename from src/Microsoft.Graph/Generated/DeviceAppManagement/SideLoadingKeys/SideLoadingKeysRequestBuilder.cs rename to src/Microsoft.Graph/Generated/Security/AttackSimulation/Operations/OperationsRequestBuilder.cs index 444d488bc05..dce423eb77e 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/SideLoadingKeys/SideLoadingKeysRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/AttackSimulation/Operations/OperationsRequestBuilder.cs @@ -1,7 +1,7 @@ -using Microsoft.Graph.Beta.DeviceAppManagement.SideLoadingKeys.Count; -using Microsoft.Graph.Beta.DeviceAppManagement.SideLoadingKeys.Item; using Microsoft.Graph.Beta.Models; using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Graph.Beta.Security.AttackSimulation.Operations.Count; +using Microsoft.Graph.Beta.Security.AttackSimulation.Operations.Item; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Abstractions.Serialization; using System; @@ -10,11 +10,11 @@ using System.Linq; using System.Threading; using System.Threading.Tasks; -namespace Microsoft.Graph.Beta.DeviceAppManagement.SideLoadingKeys { +namespace Microsoft.Graph.Beta.Security.AttackSimulation.Operations { /// - /// Provides operations to manage the sideLoadingKeys property of the microsoft.graph.deviceAppManagement entity. + /// Provides operations to manage the operations property of the microsoft.graph.attackSimulationRoot entity. /// - public class SideLoadingKeysRequestBuilder { + public class OperationsRequestBuilder { /// Provides operations to count the resources in the collection. public CountRequestBuilder Count { get => new CountRequestBuilder(PathParameters, RequestAdapter); @@ -25,72 +25,72 @@ public class SideLoadingKeysRequestBuilder { private IRequestAdapter RequestAdapter { get; set; } /// Url template to use to build the URL for the current request builder private string UrlTemplate { get; set; } - /// Provides operations to manage the sideLoadingKeys property of the microsoft.graph.deviceAppManagement entity. - public SideLoadingKeyItemRequestBuilder this[string position] { get { + /// Provides operations to manage the operations property of the microsoft.graph.attackSimulationRoot entity. + public AttackSimulationOperationItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("sideLoadingKey%2Did", position); - return new SideLoadingKeyItemRequestBuilder(urlTplParams, RequestAdapter); + urlTplParams.Add("attackSimulationOperation%2Did", position); + return new AttackSimulationOperationItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new SideLoadingKeysRequestBuilder and sets the default values. + /// Instantiates a new OperationsRequestBuilder and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public SideLoadingKeysRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) { + public OperationsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) { _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); - UrlTemplate = "{+baseurl}/deviceAppManagement/sideLoadingKeys{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}"; + UrlTemplate = "{+baseurl}/security/attackSimulation/operations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}"; var urlTplParams = new Dictionary(pathParameters); PathParameters = urlTplParams; RequestAdapter = requestAdapter; } /// - /// Instantiates a new SideLoadingKeysRequestBuilder and sets the default values. + /// Instantiates a new OperationsRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public SideLoadingKeysRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { + public OperationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); - UrlTemplate = "{+baseurl}/deviceAppManagement/sideLoadingKeys{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}"; + UrlTemplate = "{+baseurl}/security/attackSimulation/operations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}"; var urlTplParams = new Dictionary(); urlTplParams.Add("request-raw-url", rawUrl); PathParameters = urlTplParams; RequestAdapter = requestAdapter; } /// - /// Side Loading Keys that are required for the Windows 8 and 8.1 Apps installation. + /// Get operations from security /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { {"4XX", ODataError.CreateFromDiscriminatorValue}, {"5XX", ODataError.CreateFromDiscriminatorValue}, }; - return await RequestAdapter.SendAsync(requestInfo, SideLoadingKeyCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + return await RequestAdapter.SendAsync(requestInfo, AttackSimulationOperationCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Create new navigation property to sideLoadingKeys for deviceAppManagement + /// Create new navigation property to operations for security /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - public async Task PostAsync(SideLoadingKey body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(AttackSimulationOperation body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { {"4XX", ODataError.CreateFromDiscriminatorValue}, {"5XX", ODataError.CreateFromDiscriminatorValue}, }; - return await RequestAdapter.SendAsync(requestInfo, SideLoadingKey.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + return await RequestAdapter.SendAsync(requestInfo, AttackSimulationOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Side Loading Keys that are required for the Windows 8 and 8.1 Apps installation. + /// Get operations from security /// /// Configuration for the request such as headers, query parameters, and middleware options. - public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { var requestInfo = new RequestInformation { HttpMethod = Method.GET, UrlTemplate = UrlTemplate, @@ -98,7 +98,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create new navigation property to sideLoadingKeys for deviceAppManagement + /// Create new navigation property to operations for security /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. - public RequestInformation ToPostRequestInformation(SideLoadingKey body, Action requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(AttackSimulationOperation body, Action requestConfiguration = default) { _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation { HttpMethod = Method.POST, @@ -121,7 +121,7 @@ public RequestInformation ToPostRequestInformation(SideLoadingKey body, Action - /// Side Loading Keys that are required for the Windows 8 and 8.1 Apps installation. + /// Get operations from security /// - public class SideLoadingKeysRequestBuilderGetQueryParameters { + public class OperationsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] public bool? Count { get; set; } @@ -160,17 +160,17 @@ public class SideLoadingKeysRequestBuilderGetQueryParameters { /// /// Configuration for the request such as headers, query parameters, and middleware options. /// - public class SideLoadingKeysRequestBuilderGetRequestConfiguration { + public class OperationsRequestBuilderGetRequestConfiguration { /// Request headers public RequestHeaders Headers { get; set; } /// Request options public IList Options { get; set; } /// Request query parameters - public SideLoadingKeysRequestBuilderGetQueryParameters QueryParameters { get; set; } = new SideLoadingKeysRequestBuilderGetQueryParameters(); + public OperationsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new OperationsRequestBuilderGetQueryParameters(); /// - /// Instantiates a new sideLoadingKeysRequestBuilderGetRequestConfiguration and sets the default values. + /// Instantiates a new operationsRequestBuilderGetRequestConfiguration and sets the default values. /// - public SideLoadingKeysRequestBuilderGetRequestConfiguration() { + public OperationsRequestBuilderGetRequestConfiguration() { Options = new List(); Headers = new RequestHeaders(); } @@ -178,15 +178,15 @@ public SideLoadingKeysRequestBuilderGetRequestConfiguration() { /// /// Configuration for the request such as headers, query parameters, and middleware options. /// - public class SideLoadingKeysRequestBuilderPostRequestConfiguration { + public class OperationsRequestBuilderPostRequestConfiguration { /// Request headers public RequestHeaders Headers { get; set; } /// Request options public IList Options { get; set; } /// - /// Instantiates a new sideLoadingKeysRequestBuilderPostRequestConfiguration and sets the default values. + /// Instantiates a new operationsRequestBuilderPostRequestConfiguration and sets the default values. /// - public SideLoadingKeysRequestBuilderPostRequestConfiguration() { + public OperationsRequestBuilderPostRequestConfiguration() { Options = new List(); Headers = new RequestHeaders(); } diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/SideLoadingKeys/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/AttackSimulation/Payloads/Count/CountRequestBuilder.cs similarity index 95% rename from src/Microsoft.Graph/Generated/DeviceAppManagement/SideLoadingKeys/Count/CountRequestBuilder.cs rename to src/Microsoft.Graph/Generated/Security/AttackSimulation/Payloads/Count/CountRequestBuilder.cs index 13220afbd99..8cc796a03fd 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/SideLoadingKeys/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/AttackSimulation/Payloads/Count/CountRequestBuilder.cs @@ -7,7 +7,7 @@ using System.Linq; using System.Threading; using System.Threading.Tasks; -namespace Microsoft.Graph.Beta.DeviceAppManagement.SideLoadingKeys.Count { +namespace Microsoft.Graph.Beta.Security.AttackSimulation.Payloads.Count { /// /// Provides operations to count the resources in the collection. /// @@ -26,7 +26,7 @@ public class CountRequestBuilder { public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) { _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); - UrlTemplate = "{+baseurl}/deviceAppManagement/sideLoadingKeys/$count"; + UrlTemplate = "{+baseurl}/security/attackSimulation/payloads/$count"; var urlTplParams = new Dictionary(pathParameters); PathParameters = urlTplParams; RequestAdapter = requestAdapter; @@ -39,7 +39,7 @@ public CountRequestBuilder(Dictionary pathParameters, IRequestAd public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); - UrlTemplate = "{+baseurl}/deviceAppManagement/sideLoadingKeys/$count"; + UrlTemplate = "{+baseurl}/security/attackSimulation/payloads/$count"; var urlTplParams = new Dictionary(); urlTplParams.Add("request-raw-url", rawUrl); PathParameters = urlTplParams; diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/SideLoadingKeys/Item/SideLoadingKeyItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/AttackSimulation/Payloads/Item/PayloadItemRequestBuilder.cs similarity index 67% rename from src/Microsoft.Graph/Generated/DeviceAppManagement/SideLoadingKeys/Item/SideLoadingKeyItemRequestBuilder.cs rename to src/Microsoft.Graph/Generated/Security/AttackSimulation/Payloads/Item/PayloadItemRequestBuilder.cs index 998442da91f..f3bc7f9bf2b 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/SideLoadingKeys/Item/SideLoadingKeyItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/AttackSimulation/Payloads/Item/PayloadItemRequestBuilder.cs @@ -8,11 +8,11 @@ using System.Linq; using System.Threading; using System.Threading.Tasks; -namespace Microsoft.Graph.Beta.DeviceAppManagement.SideLoadingKeys.Item { +namespace Microsoft.Graph.Beta.Security.AttackSimulation.Payloads.Item { /// - /// Provides operations to manage the sideLoadingKeys property of the microsoft.graph.deviceAppManagement entity. + /// Provides operations to manage the payloads property of the microsoft.graph.attackSimulationRoot entity. /// - public class SideLoadingKeyItemRequestBuilder { + public class PayloadItemRequestBuilder { /// Path parameters for the request private Dictionary PathParameters { get; set; } /// The request adapter to use to execute the requests. @@ -20,38 +20,38 @@ public class SideLoadingKeyItemRequestBuilder { /// Url template to use to build the URL for the current request builder private string UrlTemplate { get; set; } /// - /// Instantiates a new SideLoadingKeyItemRequestBuilder and sets the default values. + /// Instantiates a new PayloadItemRequestBuilder and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public SideLoadingKeyItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) { + public PayloadItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) { _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); - UrlTemplate = "{+baseurl}/deviceAppManagement/sideLoadingKeys/{sideLoadingKey%2Did}{?%24select,%24expand}"; + UrlTemplate = "{+baseurl}/security/attackSimulation/payloads/{payload%2Did}{?%24select,%24expand}"; var urlTplParams = new Dictionary(pathParameters); PathParameters = urlTplParams; RequestAdapter = requestAdapter; } /// - /// Instantiates a new SideLoadingKeyItemRequestBuilder and sets the default values. + /// Instantiates a new PayloadItemRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public SideLoadingKeyItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { + public PayloadItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); - UrlTemplate = "{+baseurl}/deviceAppManagement/sideLoadingKeys/{sideLoadingKey%2Did}{?%24select,%24expand}"; + UrlTemplate = "{+baseurl}/security/attackSimulation/payloads/{payload%2Did}{?%24select,%24expand}"; var urlTplParams = new Dictionary(); urlTplParams.Add("request-raw-url", rawUrl); PathParameters = urlTplParams; RequestAdapter = requestAdapter; } /// - /// Delete navigation property sideLoadingKeys for deviceAppManagement + /// Delete navigation property payloads for security /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { var requestInfo = ToDeleteRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { {"4XX", ODataError.CreateFromDiscriminatorValue}, @@ -60,45 +60,45 @@ public async Task DeleteAsync(Action - /// Side Loading Keys that are required for the Windows 8 and 8.1 Apps installation. + /// Get payloads from security /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { {"4XX", ODataError.CreateFromDiscriminatorValue}, {"5XX", ODataError.CreateFromDiscriminatorValue}, }; - return await RequestAdapter.SendAsync(requestInfo, SideLoadingKey.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Beta.Models.Payload.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Update the navigation property sideLoadingKeys in deviceAppManagement + /// Update the navigation property payloads in security /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - public async Task PatchAsync(SideLoadingKey body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PatchAsync(Microsoft.Graph.Beta.Models.Payload body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPatchRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { {"4XX", ODataError.CreateFromDiscriminatorValue}, {"5XX", ODataError.CreateFromDiscriminatorValue}, }; - return await RequestAdapter.SendAsync(requestInfo, SideLoadingKey.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Beta.Models.Payload.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Delete navigation property sideLoadingKeys for deviceAppManagement + /// Delete navigation property payloads for security /// /// Configuration for the request such as headers, query parameters, and middleware options. - public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { var requestInfo = new RequestInformation { HttpMethod = Method.DELETE, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; if (requestConfiguration != null) { - var requestConfig = new SideLoadingKeyItemRequestBuilderDeleteRequestConfiguration(); + var requestConfig = new PayloadItemRequestBuilderDeleteRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); @@ -106,10 +106,10 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Side Loading Keys that are required for the Windows 8 and 8.1 Apps installation. + /// Get payloads from security /// /// Configuration for the request such as headers, query parameters, and middleware options. - public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { var requestInfo = new RequestInformation { HttpMethod = Method.GET, UrlTemplate = UrlTemplate, @@ -117,7 +117,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the navigation property sideLoadingKeys in deviceAppManagement + /// Update the navigation property payloads in security /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. - public RequestInformation ToPatchRequestInformation(SideLoadingKey body, Action requestConfiguration = default) { + public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Beta.Models.Payload body, Action requestConfiguration = default) { _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation { HttpMethod = Method.PATCH, @@ -140,7 +140,7 @@ public RequestInformation ToPatchRequestInformation(SideLoadingKey body, Action< requestInfo.Headers.Add("Accept", "application/json"); requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { - var requestConfig = new SideLoadingKeyItemRequestBuilderPatchRequestConfiguration(); + var requestConfig = new PayloadItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); @@ -150,23 +150,23 @@ public RequestInformation ToPatchRequestInformation(SideLoadingKey body, Action< /// /// Configuration for the request such as headers, query parameters, and middleware options. /// - public class SideLoadingKeyItemRequestBuilderDeleteRequestConfiguration { + public class PayloadItemRequestBuilderDeleteRequestConfiguration { /// Request headers public RequestHeaders Headers { get; set; } /// Request options public IList Options { get; set; } /// - /// Instantiates a new SideLoadingKeyItemRequestBuilderDeleteRequestConfiguration and sets the default values. + /// Instantiates a new PayloadItemRequestBuilderDeleteRequestConfiguration and sets the default values. /// - public SideLoadingKeyItemRequestBuilderDeleteRequestConfiguration() { + public PayloadItemRequestBuilderDeleteRequestConfiguration() { Options = new List(); Headers = new RequestHeaders(); } } /// - /// Side Loading Keys that are required for the Windows 8 and 8.1 Apps installation. + /// Get payloads from security /// - public class SideLoadingKeyItemRequestBuilderGetQueryParameters { + public class PayloadItemRequestBuilderGetQueryParameters { /// Expand related entities [QueryParameter("%24expand")] public string[] Expand { get; set; } @@ -177,17 +177,17 @@ public class SideLoadingKeyItemRequestBuilderGetQueryParameters { /// /// Configuration for the request such as headers, query parameters, and middleware options. /// - public class SideLoadingKeyItemRequestBuilderGetRequestConfiguration { + public class PayloadItemRequestBuilderGetRequestConfiguration { /// Request headers public RequestHeaders Headers { get; set; } /// Request options public IList Options { get; set; } /// Request query parameters - public SideLoadingKeyItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new SideLoadingKeyItemRequestBuilderGetQueryParameters(); + public PayloadItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new PayloadItemRequestBuilderGetQueryParameters(); /// - /// Instantiates a new SideLoadingKeyItemRequestBuilderGetRequestConfiguration and sets the default values. + /// Instantiates a new PayloadItemRequestBuilderGetRequestConfiguration and sets the default values. /// - public SideLoadingKeyItemRequestBuilderGetRequestConfiguration() { + public PayloadItemRequestBuilderGetRequestConfiguration() { Options = new List(); Headers = new RequestHeaders(); } @@ -195,15 +195,15 @@ public SideLoadingKeyItemRequestBuilderGetRequestConfiguration() { /// /// Configuration for the request such as headers, query parameters, and middleware options. /// - public class SideLoadingKeyItemRequestBuilderPatchRequestConfiguration { + public class PayloadItemRequestBuilderPatchRequestConfiguration { /// Request headers public RequestHeaders Headers { get; set; } /// Request options public IList Options { get; set; } /// - /// Instantiates a new SideLoadingKeyItemRequestBuilderPatchRequestConfiguration and sets the default values. + /// Instantiates a new PayloadItemRequestBuilderPatchRequestConfiguration and sets the default values. /// - public SideLoadingKeyItemRequestBuilderPatchRequestConfiguration() { + public PayloadItemRequestBuilderPatchRequestConfiguration() { Options = new List(); Headers = new RequestHeaders(); } diff --git a/src/Microsoft.Graph/Generated/Security/AttackSimulation/Payloads/PayloadsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/AttackSimulation/Payloads/PayloadsRequestBuilder.cs new file mode 100644 index 00000000000..52359829ea4 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/AttackSimulation/Payloads/PayloadsRequestBuilder.cs @@ -0,0 +1,195 @@ +using Microsoft.Graph.Beta.Models; +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Graph.Beta.Security.AttackSimulation.Payloads.Count; +using Microsoft.Graph.Beta.Security.AttackSimulation.Payloads.Item; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +namespace Microsoft.Graph.Beta.Security.AttackSimulation.Payloads { + /// + /// Provides operations to manage the payloads property of the microsoft.graph.attackSimulationRoot entity. + /// + public class PayloadsRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// Provides operations to manage the payloads property of the microsoft.graph.attackSimulationRoot entity. + public PayloadItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("payload%2Did", position); + return new PayloadItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new PayloadsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public PayloadsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) { + _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/security/attackSimulation/payloads{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}"; + var urlTplParams = new Dictionary(pathParameters); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Instantiates a new PayloadsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public PayloadsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { + if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/security/attackSimulation/payloads{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}"; + var urlTplParams = new Dictionary(); + urlTplParams.Add("request-raw-url", rawUrl); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Get payloads from security + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, PayloadCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Create new navigation property to payloads for security + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + public async Task PostAsync(Microsoft.Graph.Beta.Models.Payload body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Beta.Models.Payload.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Get payloads from security + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new PayloadsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Create new navigation property to payloads for security + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. + public RequestInformation ToPostRequestInformation(Microsoft.Graph.Beta.Models.Payload body, Action requestConfiguration = default) { + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new PayloadsRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get payloads from security + /// + public class PayloadsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities + [QueryParameter("%24expand")] + public string[] Expand { get; set; } + /// Filter items by property values + [QueryParameter("%24filter")] + public string Filter { get; set; } + /// Order items by property values + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } + /// Search items by search phrases + [QueryParameter("%24search")] + public string Search { get; set; } + /// Select properties to be returned + [QueryParameter("%24select")] + public string[] Select { get; set; } + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class PayloadsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public PayloadsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new PayloadsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new payloadsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public PayloadsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class PayloadsRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new payloadsRequestBuilderPostRequestConfiguration and sets the default values. + /// + public PayloadsRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/AttackSimulation/Simulations/Item/Payload/PayloadRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/AttackSimulation/Simulations/Item/Payload/PayloadRequestBuilder.cs new file mode 100644 index 00000000000..4199f3a67d0 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/AttackSimulation/Simulations/Item/Payload/PayloadRequestBuilder.cs @@ -0,0 +1,112 @@ +using Microsoft.Graph.Beta.Models; +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +namespace Microsoft.Graph.Beta.Security.AttackSimulation.Simulations.Item.Payload { + /// + /// Provides operations to manage the payload property of the microsoft.graph.simulation entity. + /// + public class PayloadRequestBuilder { + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// + /// Instantiates a new PayloadRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public PayloadRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) { + _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/security/attackSimulation/simulations/{simulation%2Did}/payload{?%24select,%24expand}"; + var urlTplParams = new Dictionary(pathParameters); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Instantiates a new PayloadRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public PayloadRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { + if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/security/attackSimulation/simulations/{simulation%2Did}/payload{?%24select,%24expand}"; + var urlTplParams = new Dictionary(); + urlTplParams.Add("request-raw-url", rawUrl); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Get payload from security + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Beta.Models.Payload.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Get payload from security + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new PayloadRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get payload from security + /// + public class PayloadRequestBuilderGetQueryParameters { + /// Expand related entities + [QueryParameter("%24expand")] + public string[] Expand { get; set; } + /// Select properties to be returned + [QueryParameter("%24select")] + public string[] Select { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class PayloadRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public PayloadRequestBuilderGetQueryParameters QueryParameters { get; set; } = new PayloadRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new payloadRequestBuilderGetRequestConfiguration and sets the default values. + /// + public PayloadRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/AttackSimulation/Simulations/Item/SimulationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/AttackSimulation/Simulations/Item/SimulationItemRequestBuilder.cs index f46aea3585d..396b2c5519d 100644 --- a/src/Microsoft.Graph/Generated/Security/AttackSimulation/Simulations/Item/SimulationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/AttackSimulation/Simulations/Item/SimulationItemRequestBuilder.cs @@ -1,5 +1,6 @@ using Microsoft.Graph.Beta.Models; using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Graph.Beta.Security.AttackSimulation.Simulations.Item.Payload; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Abstractions.Serialization; using System; @@ -15,6 +16,10 @@ namespace Microsoft.Graph.Beta.Security.AttackSimulation.Simulations.Item { public class SimulationItemRequestBuilder { /// Path parameters for the request private Dictionary PathParameters { get; set; } + /// Provides operations to manage the payload property of the microsoft.graph.simulation entity. + public PayloadRequestBuilder Payload { get => + new PayloadRequestBuilder(PathParameters, RequestAdapter); + } /// The request adapter to use to execute the requests. private IRequestAdapter RequestAdapter { get; set; } /// Url template to use to build the URL for the current request builder diff --git a/src/Microsoft.Graph/Generated/Solutions/BusinessScenarios/BusinessScenariosRequestBuilder.cs b/src/Microsoft.Graph/Generated/Solutions/BusinessScenarios/BusinessScenariosRequestBuilder.cs index 21618d0501c..98ca7d955bd 100644 --- a/src/Microsoft.Graph/Generated/Solutions/BusinessScenarios/BusinessScenariosRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Solutions/BusinessScenarios/BusinessScenariosRequestBuilder.cs @@ -59,7 +59,8 @@ public BusinessScenariosRequestBuilder(string rawUrl, IRequestAdapter requestAda RequestAdapter = requestAdapter; } /// - /// Get businessScenarios from solutions + /// Get a list of all businessScenario objects in an organization. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -72,7 +73,8 @@ public async Task GetAsync(Action(requestInfo, BusinessScenarioCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Create new navigation property to businessScenarios for solutions + /// Create a new businessScenario object. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -87,7 +89,7 @@ public async Task PostAsync(BusinessScenario body, Action(requestInfo, BusinessScenario.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Get businessScenarios from solutions + /// Get a list of all businessScenario objects in an organization. /// /// Configuration for the request such as headers, query parameters, and middleware options. public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { @@ -107,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create new navigation property to businessScenarios for solutions + /// Create a new businessScenario object. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -129,7 +131,7 @@ public RequestInformation ToPostRequestInformation(BusinessScenario body, Action return requestInfo; } /// - /// Get businessScenarios from solutions + /// Get a list of all businessScenario objects in an organization. /// public class BusinessScenariosRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Solutions/BusinessScenarios/Item/Planner/GetPlan/GetPlanRequestBuilder.cs b/src/Microsoft.Graph/Generated/Solutions/BusinessScenarios/Item/Planner/GetPlan/GetPlanRequestBuilder.cs index fff9de368d9..35ca7df9fd1 100644 --- a/src/Microsoft.Graph/Generated/Solutions/BusinessScenarios/Item/Planner/GetPlan/GetPlanRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Solutions/BusinessScenarios/Item/Planner/GetPlan/GetPlanRequestBuilder.cs @@ -47,7 +47,8 @@ public GetPlanRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { RequestAdapter = requestAdapter; } /// - /// Invoke action getPlan + /// Get information about the plannerPlan mapped to a given target. If a **plannerPlan** doesn't exist for the specified target at the time of the request, a new plan will be created for the businessScenario. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -62,7 +63,7 @@ public async Task PostAsync(GetPlanPostRequestBod return await RequestAdapter.SendAsync(requestInfo, BusinessScenarioPlanReference.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Invoke action getPlan + /// Get information about the plannerPlan mapped to a given target. If a **plannerPlan** doesn't exist for the specified target at the time of the request, a new plan will be created for the businessScenario. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Solutions/BusinessScenarios/Item/Planner/PlanConfiguration/Localizations/Item/PlannerPlanConfigurationLocalizationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Solutions/BusinessScenarios/Item/Planner/PlanConfiguration/Localizations/Item/PlannerPlanConfigurationLocalizationItemRequestBuilder.cs index 0a86d5848fe..422506b7476 100644 --- a/src/Microsoft.Graph/Generated/Solutions/BusinessScenarios/Item/Planner/PlanConfiguration/Localizations/Item/PlannerPlanConfigurationLocalizationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Solutions/BusinessScenarios/Item/Planner/PlanConfiguration/Localizations/Item/PlannerPlanConfigurationLocalizationItemRequestBuilder.cs @@ -60,7 +60,7 @@ public async Task DeleteAsync(Action - /// Get localizations from solutions + /// Localized names for the plan configuration. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -106,7 +106,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get localizations from solutions + /// Localized names for the plan configuration. /// /// Configuration for the request such as headers, query parameters, and middleware options. public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { @@ -164,7 +164,7 @@ public PlannerPlanConfigurationLocalizationItemRequestBuilderDeleteRequestConfig } } /// - /// Get localizations from solutions + /// Localized names for the plan configuration. /// public class PlannerPlanConfigurationLocalizationItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Solutions/BusinessScenarios/Item/Planner/PlanConfiguration/Localizations/LocalizationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Solutions/BusinessScenarios/Item/Planner/PlanConfiguration/Localizations/LocalizationsRequestBuilder.cs index 170abffd434..55fc60ed6fa 100644 --- a/src/Microsoft.Graph/Generated/Solutions/BusinessScenarios/Item/Planner/PlanConfiguration/Localizations/LocalizationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Solutions/BusinessScenarios/Item/Planner/PlanConfiguration/Localizations/LocalizationsRequestBuilder.cs @@ -59,7 +59,8 @@ public LocalizationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter RequestAdapter = requestAdapter; } /// - /// Get localizations from solutions + /// Get a list of the plannerPlanConfigurationLocalization objects and their properties. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -72,7 +73,8 @@ public async Task GetAsy return await RequestAdapter.SendAsync(requestInfo, PlannerPlanConfigurationLocalizationCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Create new navigation property to localizations for solutions + /// Create a new plannerPlanConfigurationLocalization object. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -87,7 +89,7 @@ public async Task PostAsync(PlannerPlanCon return await RequestAdapter.SendAsync(requestInfo, PlannerPlanConfigurationLocalization.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Get localizations from solutions + /// Get a list of the plannerPlanConfigurationLocalization objects and their properties. /// /// Configuration for the request such as headers, query parameters, and middleware options. public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { @@ -107,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create new navigation property to localizations for solutions + /// Create a new plannerPlanConfigurationLocalization object. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -129,7 +131,7 @@ public RequestInformation ToPostRequestInformation(PlannerPlanConfigurationLocal return requestInfo; } /// - /// Get localizations from solutions + /// Get a list of the plannerPlanConfigurationLocalization objects and their properties. /// public class LocalizationsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Solutions/BusinessScenarios/Item/Planner/PlanConfiguration/PlanConfigurationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Solutions/BusinessScenarios/Item/Planner/PlanConfiguration/PlanConfigurationRequestBuilder.cs index 6786be7279d..47dfd784aa2 100644 --- a/src/Microsoft.Graph/Generated/Solutions/BusinessScenarios/Item/Planner/PlanConfiguration/PlanConfigurationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Solutions/BusinessScenarios/Item/Planner/PlanConfiguration/PlanConfigurationRequestBuilder.cs @@ -65,7 +65,8 @@ public async Task DeleteAsync(Action - /// Get planConfiguration from solutions + /// Read the properties and relationships of a plannerPlanConfiguration object. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -78,7 +79,8 @@ public async Task GetAsync(Action(requestInfo, PlannerPlanConfiguration.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Update the navigation property planConfiguration in solutions + /// Update the properties of a plannerPlanConfiguration object for a businessScenario. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -111,7 +113,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get planConfiguration from solutions + /// Read the properties and relationships of a plannerPlanConfiguration object. /// /// Configuration for the request such as headers, query parameters, and middleware options. public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { @@ -131,7 +133,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the navigation property planConfiguration in solutions + /// Update the properties of a plannerPlanConfiguration object for a businessScenario. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -169,7 +171,7 @@ public PlanConfigurationRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get planConfiguration from solutions + /// Read the properties and relationships of a plannerPlanConfiguration object. /// public class PlanConfigurationRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Solutions/BusinessScenarios/Item/Planner/PlannerRequestBuilder.cs b/src/Microsoft.Graph/Generated/Solutions/BusinessScenarios/Item/Planner/PlannerRequestBuilder.cs index edf9eccf50c..5baed97c35b 100644 --- a/src/Microsoft.Graph/Generated/Solutions/BusinessScenarios/Item/Planner/PlannerRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Solutions/BusinessScenarios/Item/Planner/PlannerRequestBuilder.cs @@ -80,7 +80,8 @@ public async Task DeleteAsync(Action - /// Get planner from solutions + /// Read the properties and relationships of a businessScenarioPlanner object. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -126,7 +127,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get planner from solutions + /// Read the properties and relationships of a businessScenarioPlanner object. /// /// Configuration for the request such as headers, query parameters, and middleware options. public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { @@ -184,7 +185,7 @@ public PlannerRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get planner from solutions + /// Read the properties and relationships of a businessScenarioPlanner object. /// public class PlannerRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Solutions/BusinessScenarios/Item/Planner/TaskConfiguration/TaskConfigurationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Solutions/BusinessScenarios/Item/Planner/TaskConfiguration/TaskConfigurationRequestBuilder.cs index 376d476a3a3..5d21e3b6011 100644 --- a/src/Microsoft.Graph/Generated/Solutions/BusinessScenarios/Item/Planner/TaskConfiguration/TaskConfigurationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Solutions/BusinessScenarios/Item/Planner/TaskConfiguration/TaskConfigurationRequestBuilder.cs @@ -60,7 +60,8 @@ public async Task DeleteAsync(Action - /// Get taskConfiguration from solutions + /// Read the properties and relationships of a plannerTaskConfiguration object. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -73,7 +74,8 @@ public async Task GetAsync(Action(requestInfo, PlannerTaskConfiguration.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Update the navigation property taskConfiguration in solutions + /// Update the properties of a plannerTaskConfiguration object. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -106,7 +108,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get taskConfiguration from solutions + /// Read the properties and relationships of a plannerTaskConfiguration object. /// /// Configuration for the request such as headers, query parameters, and middleware options. public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { @@ -126,7 +128,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the navigation property taskConfiguration in solutions + /// Update the properties of a plannerTaskConfiguration object. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -164,7 +166,7 @@ public TaskConfigurationRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get taskConfiguration from solutions + /// Read the properties and relationships of a plannerTaskConfiguration object. /// public class TaskConfigurationRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Solutions/BusinessScenarios/Item/Planner/Tasks/Item/BusinessScenarioTaskItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Solutions/BusinessScenarios/Item/Planner/Tasks/Item/BusinessScenarioTaskItemRequestBuilder.cs index dad1c99faa3..b482589968c 100644 --- a/src/Microsoft.Graph/Generated/Solutions/BusinessScenarios/Item/Planner/Tasks/Item/BusinessScenarioTaskItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Solutions/BusinessScenarios/Item/Planner/Tasks/Item/BusinessScenarioTaskItemRequestBuilder.cs @@ -60,7 +60,7 @@ public async Task DeleteAsync(Action - /// Get tasks from solutions + /// The Planner tasks for the scenario. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -106,7 +106,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get tasks from solutions + /// The Planner tasks for the scenario. /// /// Configuration for the request such as headers, query parameters, and middleware options. public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { @@ -164,7 +164,7 @@ public BusinessScenarioTaskItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get tasks from solutions + /// The Planner tasks for the scenario. /// public class BusinessScenarioTaskItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Solutions/BusinessScenarios/Item/Planner/Tasks/TasksRequestBuilder.cs b/src/Microsoft.Graph/Generated/Solutions/BusinessScenarios/Item/Planner/Tasks/TasksRequestBuilder.cs index 47c34c834ba..d7a7e5fdd95 100644 --- a/src/Microsoft.Graph/Generated/Solutions/BusinessScenarios/Item/Planner/Tasks/TasksRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Solutions/BusinessScenarios/Item/Planner/Tasks/TasksRequestBuilder.cs @@ -59,7 +59,8 @@ public TasksRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { RequestAdapter = requestAdapter; } /// - /// Get tasks from solutions + /// Get a list of the businessScenarioTask objects and their properties. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -72,7 +73,8 @@ public async Task GetAsync(Action(requestInfo, BusinessScenarioTaskCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Create new navigation property to tasks for solutions + /// Create a new businessScenarioTask object. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -87,7 +89,7 @@ public async Task PostAsync(BusinessScenarioTask body, Act return await RequestAdapter.SendAsync(requestInfo, BusinessScenarioTask.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Get tasks from solutions + /// Get a list of the businessScenarioTask objects and their properties. /// /// Configuration for the request such as headers, query parameters, and middleware options. public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { @@ -107,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create new navigation property to tasks for solutions + /// Create a new businessScenarioTask object. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -129,7 +131,7 @@ public RequestInformation ToPostRequestInformation(BusinessScenarioTask body, Ac return requestInfo; } /// - /// Get tasks from solutions + /// Get a list of the businessScenarioTask objects and their properties. /// public class TasksRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/TeamTemplateDefinition/Item/TeamDefinition/Channels/Item/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/TeamTemplateDefinition/Item/TeamDefinition/Channels/Item/Messages/MessagesRequestBuilder.cs index 54c3b730ac6..9c58cc3de77 100644 --- a/src/Microsoft.Graph/Generated/TeamTemplateDefinition/Item/TeamDefinition/Channels/Item/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/TeamTemplateDefinition/Item/TeamDefinition/Channels/Item/Messages/MessagesRequestBuilder.cs @@ -80,8 +80,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Send a new chatMessage in the specified channel or a chat. - /// Find more info here + /// Send a new chatMessage in the specified channel. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -116,7 +116,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Send a new chatMessage in the specified channel or a chat. + /// Send a new chatMessage in the specified channel. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/TeamTemplateDefinition/Item/TeamDefinition/PrimaryChannel/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/TeamTemplateDefinition/Item/TeamDefinition/PrimaryChannel/Messages/MessagesRequestBuilder.cs index 52cc8d4218a..6bc2d91d771 100644 --- a/src/Microsoft.Graph/Generated/TeamTemplateDefinition/Item/TeamDefinition/PrimaryChannel/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/TeamTemplateDefinition/Item/TeamDefinition/PrimaryChannel/Messages/MessagesRequestBuilder.cs @@ -80,8 +80,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Send a new chatMessage in the specified channel or a chat. - /// Find more info here + /// Send a new chatMessage in the specified channel. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -116,7 +116,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Send a new chatMessage in the specified channel or a chat. + /// Send a new chatMessage in the specified channel. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/MessagesRequestBuilder.cs index cf9b66e4e42..06ab557992e 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/MessagesRequestBuilder.cs @@ -80,8 +80,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Send a new chatMessage in the specified channel or a chat. - /// Find more info here + /// Send a new chatMessage in the specified channel. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -116,7 +116,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Send a new chatMessage in the specified channel or a chat. + /// Send a new chatMessage in the specified channel. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/MessagesRequestBuilder.cs index 0250bd85e08..aada4f828ea 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/MessagesRequestBuilder.cs @@ -80,8 +80,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Send a new chatMessage in the specified channel or a chat. - /// Find more info here + /// Send a new chatMessage in the specified channel. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -116,7 +116,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Send a new chatMessage in the specified channel or a chat. + /// Send a new chatMessage in the specified channel. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/MessagesRequestBuilder.cs index 61ba2846bf4..459475505ac 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/MessagesRequestBuilder.cs @@ -80,8 +80,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Send a new chatMessage in the specified channel or a chat. - /// Find more info here + /// Send a new chatMessage in the specified channel. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -116,7 +116,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Send a new chatMessage in the specified channel or a chat. + /// Send a new chatMessage in the specified channel. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Teamwork/TeamTemplates/Item/Definitions/Item/TeamDefinition/Channels/Item/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/TeamTemplates/Item/Definitions/Item/TeamDefinition/Channels/Item/Messages/MessagesRequestBuilder.cs index e967c56d0e7..cbd66ae844b 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/TeamTemplates/Item/Definitions/Item/TeamDefinition/Channels/Item/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/TeamTemplates/Item/Definitions/Item/TeamDefinition/Channels/Item/Messages/MessagesRequestBuilder.cs @@ -80,8 +80,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Send a new chatMessage in the specified channel or a chat. - /// Find more info here + /// Send a new chatMessage in the specified channel. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -116,7 +116,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Send a new chatMessage in the specified channel or a chat. + /// Send a new chatMessage in the specified channel. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Teamwork/TeamTemplates/Item/Definitions/Item/TeamDefinition/PrimaryChannel/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/TeamTemplates/Item/Definitions/Item/TeamDefinition/PrimaryChannel/Messages/MessagesRequestBuilder.cs index faa15b6b47e..8f65ba38574 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/TeamTemplates/Item/Definitions/Item/TeamDefinition/PrimaryChannel/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/TeamTemplates/Item/Definitions/Item/TeamDefinition/PrimaryChannel/Messages/MessagesRequestBuilder.cs @@ -80,8 +80,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Send a new chatMessage in the specified channel or a chat. - /// Find more info here + /// Send a new chatMessage in the specified channel. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -116,7 +116,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Send a new chatMessage in the specified channel or a chat. + /// Send a new chatMessage in the specified channel. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Teamwork/TeamTemplates/TeamTemplatesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/TeamTemplates/TeamTemplatesRequestBuilder.cs index 6702e1db1c0..aaa7af4e7f1 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/TeamTemplates/TeamTemplatesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/TeamTemplates/TeamTemplatesRequestBuilder.cs @@ -59,8 +59,8 @@ public TeamTemplatesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter RequestAdapter = requestAdapter; } /// - /// Get the list of teamTemplate objects that are available for a tenant. - /// Find more info here + /// List the teamTemplateDefinition objects associated with a teamTemplate. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -88,7 +88,7 @@ public async Task PostAsync(TeamTemplate body, Action(requestInfo, TeamTemplate.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Get the list of teamTemplate objects that are available for a tenant. + /// List the teamTemplateDefinition objects associated with a teamTemplate. /// /// Configuration for the request such as headers, query parameters, and middleware options. public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { @@ -130,7 +130,7 @@ public RequestInformation ToPostRequestInformation(TeamTemplate body, Action - /// Get the list of teamTemplate objects that are available for a tenant. + /// List the teamTemplateDefinition objects associated with a teamTemplate. /// public class TeamTemplatesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Authentication/Methods/MethodsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Authentication/Methods/MethodsRequestBuilder.cs index 95012ce5bb0..ceba7edefba 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Authentication/Methods/MethodsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Authentication/Methods/MethodsRequestBuilder.cs @@ -59,7 +59,7 @@ public MethodsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { RequestAdapter = requestAdapter; } /// - /// Retrieve a list of authenticationMethod objects. This API returns only authentication methods supported on this API version. See Azure AD authentication methods API overview for a list of currently supported methods. + /// Retrieve a list of authentication methods registered to a user. The authentication methods are defined by the types derived from the authenticationMethod resource type, and only the methods supported on this API version. See Azure AD authentication methods API overview for a list of currently supported methods. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -88,7 +88,7 @@ public async Task PostAsync(AuthenticationMethod body, Act return await RequestAdapter.SendAsync(requestInfo, AuthenticationMethod.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Retrieve a list of authenticationMethod objects. This API returns only authentication methods supported on this API version. See Azure AD authentication methods API overview for a list of currently supported methods. + /// Retrieve a list of authentication methods registered to a user. The authentication methods are defined by the types derived from the authenticationMethod resource type, and only the methods supported on this API version. See Azure AD authentication methods API overview for a list of currently supported methods. /// /// Configuration for the request such as headers, query parameters, and middleware options. public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { @@ -130,7 +130,7 @@ public RequestInformation ToPostRequestInformation(AuthenticationMethod body, Ac return requestInfo; } /// - /// Retrieve a list of authenticationMethod objects. This API returns only authentication methods supported on this API version. See Azure AD authentication methods API overview for a list of currently supported methods. + /// Retrieve a list of authentication methods registered to a user. The authentication methods are defined by the types derived from the authenticationMethod resource type, and only the methods supported on this API version. See Azure AD authentication methods API overview for a list of currently supported methods. /// public class MethodsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/MessagesRequestBuilder.cs index fdb6040a4a9..6277658ac60 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/MessagesRequestBuilder.cs @@ -80,8 +80,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Send a new chatMessage in the specified channel or a chat. - /// Find more info here + /// Send a new chatMessage in the specified chat. This API cannot create a new chat; you must use the list chats method to retrieve the ID of an existing chat before creating a chat message. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -116,7 +116,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Send a new chatMessage in the specified channel or a chat. + /// Send a new chatMessage in the specified chat. This API cannot create a new chat; you must use the list chats method to retrieve the ID of an existing chat before creating a chat message. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Messages/MessagesRequestBuilder.cs index ab71f0eb219..39d1dd4fa53 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Messages/MessagesRequestBuilder.cs @@ -80,8 +80,8 @@ public async Task GetAsync(Action(requestInfo, MessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Create a draft of a new message in either JSON or MIME format. When using JSON format, you can:- Include an attachment.- Use a mention to call out another user in the new message.- Update the draft later to add content to the **body** or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in **base64** format in the request body.- /* Add any attachments and S/MIME properties to the MIME content. By default, this operation saves the draft in the Drafts folder. Send the draft message in a subsequent operation. Alternatively, send a new message in a single action, or create a draft to forward, to reply or to reply-all to an existing message. - /// Find more info here + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. See known limitations of open extensions for more information. The table in the Permissions section lists the resources that support open extensions. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -116,7 +116,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a draft of a new message in either JSON or MIME format. When using JSON format, you can:- Include an attachment.- Use a mention to call out another user in the new message.- Update the draft later to add content to the **body** or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in **base64** format in the request body.- /* Add any attachments and S/MIME properties to the MIME content. By default, this operation saves the draft in the Drafts folder. Send the draft message in a subsequent operation. Alternatively, send a new message in a single action, or create a draft to forward, to reply or to reply-all to an existing message. + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. See known limitations of open extensions for more information. The table in the Permissions section lists the resources that support open extensions. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/Registration/RegistrationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/Registration/RegistrationRequestBuilder.cs index 38e60016504..a9c34a8b954 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/Registration/RegistrationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/Registration/RegistrationRequestBuilder.cs @@ -52,8 +52,8 @@ public RegistrationRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) RequestAdapter = requestAdapter; } /// - /// Disable and delete the meetingRegistration of an onlineMeeting on behalf of the organizer. - /// Find more info here + /// Disable and delete the externalMeetingRegistration of an onlineMeeting. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -66,8 +66,8 @@ public async Task DeleteAsync(Action - /// Get the externalMeetingRegistration details associated with an onlineMeeting. - /// Find more info here + /// Get the meetingRegistration details associated with an onlineMeeting on behalf of the organizer. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -96,7 +96,7 @@ public async Task PatchAsync(MeetingRegistration body, Acti return await RequestAdapter.SendAsync(requestInfo, MeetingRegistration.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Disable and delete the meetingRegistration of an onlineMeeting on behalf of the organizer. + /// Disable and delete the externalMeetingRegistration of an onlineMeeting. /// /// Configuration for the request such as headers, query parameters, and middleware options. public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get the externalMeetingRegistration details associated with an onlineMeeting. + /// Get the meetingRegistration details associated with an onlineMeeting on behalf of the organizer. /// /// Configuration for the request such as headers, query parameters, and middleware options. public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { @@ -172,7 +172,7 @@ public RegistrationRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get the externalMeetingRegistration details associated with an onlineMeeting. + /// Get the meetingRegistration details associated with an onlineMeeting on behalf of the organizer. /// public class RegistrationRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/UsersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/UsersRequestBuilder.cs index eb31759ea3e..3d1e389f7d8 100644 --- a/src/Microsoft.Graph/Generated/Users/UsersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/UsersRequestBuilder.cs @@ -87,8 +87,8 @@ public DeltaRequestBuilder Delta() { return new DeltaRequestBuilder(PathParameters, RequestAdapter); } /// - /// Retrieve the properties and relationships of user object. This operation returns by default only a subset of the more commonly used properties for each user. These _default_ properties are noted in the Properties section. To get properties that are _not_ returned by default, do a GET operation for the user and specify the properties in a `$select` OData query option. Because the **user** resource supports extensions, you can also use the `GET` operation to get custom properties and extension data in a **user** instance. - /// Find more info here + /// Retrieve a list of user objects. This operation returns by default only a subset of the more commonly used properties for each user. These _default_ properties are noted in the Properties section. To get properties that are _not_ returned by default, do a GET operation for the user and specify the properties in a `$select` OData query option. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -123,7 +123,7 @@ public GetManagedAppBlockedUsersRequestBuilder GetManagedAppBlockedUsers() { return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Beta.Models.User.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Retrieve the properties and relationships of user object. This operation returns by default only a subset of the more commonly used properties for each user. These _default_ properties are noted in the Properties section. To get properties that are _not_ returned by default, do a GET operation for the user and specify the properties in a `$select` OData query option. Because the **user** resource supports extensions, you can also use the `GET` operation to get custom properties and extension data in a **user** instance. + /// Retrieve a list of user objects. This operation returns by default only a subset of the more commonly used properties for each user. These _default_ properties are noted in the Properties section. To get properties that are _not_ returned by default, do a GET operation for the user and specify the properties in a `$select` OData query option. /// /// Configuration for the request such as headers, query parameters, and middleware options. public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { @@ -165,7 +165,7 @@ public RequestInformation ToPostRequestInformation(Microsoft.Graph.Beta.Models.U return requestInfo; } /// - /// Retrieve the properties and relationships of user object. This operation returns by default only a subset of the more commonly used properties for each user. These _default_ properties are noted in the Properties section. To get properties that are _not_ returned by default, do a GET operation for the user and specify the properties in a `$select` OData query option. Because the **user** resource supports extensions, you can also use the `GET` operation to get custom properties and extension data in a **user** instance. + /// Retrieve a list of user objects. This operation returns by default only a subset of the more commonly used properties for each user. These _default_ properties are noted in the Properties section. To get properties that are _not_ returned by default, do a GET operation for the user and specify the properties in a `$select` OData query option. /// public class UsersRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/kiota-lock.json b/src/Microsoft.Graph/Generated/kiota-lock.json index dae999b2937..d14b7811839 100644 --- a/src/Microsoft.Graph/Generated/kiota-lock.json +++ b/src/Microsoft.Graph/Generated/kiota-lock.json @@ -1,8 +1,8 @@ { - "descriptionHash": "2AE042405B5A83834FE5A3BC34D4D930329FB86E28EF411433ECD6EAA0E604BD3EF6D144151DAA6E06927857E9F32E8E38DD7F4A43CFBFDD7E0934B8DE084467", + "descriptionHash": "66ECDE89BF67856B94A1B13B3D32647A1185DBA7FA690BCA6254E8AEA9F03A6BDD6CD9869FBEF1CEDBFCAF22FEF8D346D17E528627EF4603932390205793EB2D", "descriptionLocation": "/home/vsts/work/1/s/msgraph-metadata/clean_beta_openapi/openapi.yaml", "lockFileVersion": "1.0.0", - "kiotaVersion": "0.10.0.0", + "kiotaVersion": "0.10.0-preview", "clientClassName": "BaseGraphServiceClient", "clientNamespaceName": "Microsoft.Graph.Beta", "language": "CSharp", From 74c09b50fbba632c8b46eeee0da1f95567d2d36f Mon Sep 17 00:00:00 2001 From: Eastman Date: Tue, 17 Jan 2023 17:56:28 +0300 Subject: [PATCH 2/3] Update CHANGELOG.md --- CHANGELOG.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6291dca843b..277e3c73b03 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,11 +7,12 @@ and this project does NOT adhere to [Semantic Versioning](https://semver.org/spe ## [Unreleased] -## [5.16.1-preview] - 2023-01-16 +## [5.17.0-preview] - 2023-01-16 ### Changed - Fixed a regression where passing custom base url would not be reflected in the requests. +- Latest metadata updates from 12th January 2023 snapshot ## [5.16.0-preview] - 2023-01-11 From 7ff1c7dc3c2a3a078491a692f284a8b0bc248a58 Mon Sep 17 00:00:00 2001 From: Eastman Date: Tue, 17 Jan 2023 17:57:35 +0300 Subject: [PATCH 3/3] Update version and changelog --- src/Microsoft.Graph/Microsoft.Graph.Beta.csproj | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Microsoft.Graph/Microsoft.Graph.Beta.csproj b/src/Microsoft.Graph/Microsoft.Graph.Beta.csproj index 5c7722f72c5..7ebb9b69cdb 100644 --- a/src/Microsoft.Graph/Microsoft.Graph.Beta.csproj +++ b/src/Microsoft.Graph/Microsoft.Graph.Beta.csproj @@ -23,9 +23,10 @@ true - Fixed a regression where passing custom base url would not be reflected in the requests. +- Latest metadata updates from 12th January 2023 snapshot - 5.16.1 + 5.17.0